Skip to content

MSI Import does not update quantities in stock #272

@roman204

Description

@roman204

Describe the bug
I am having a strange issue with the standalone msi-import. The import itself is working but the quantity in the "stock view" of magento is not updating.

To Reproduce
Steps to reproduce the behavior:

  1. Execute the command import:products:inventory:msi
  2. Open your database tool and open table "inventory_source_item" and check a imported entity
  3. The imported values in the table are correct
  4. Open your database tool and open generated view for stock (in my case "inventory_stock_1") and search for the sku of the importet product -> see the value is not updated.

Sidenote
The strangest thing is, if the csv file (from pacemaker generated) is imported directly with the magento import in the backend, everything works as expected! And another Problem which is maybe related, if only products are imported the saleable quantity is also 0 for all imported products. Even if no stock is imported.

Expected behavior
The stock view should also update.

Screenshots
image

Additional context
Add any other context about the problem here.

Tech specs

  • magento 2.4.5-p1
  • php 8.1
  • mariadb 10.4
  • pacemaker community version
  • version of module techdivision/import is 17.3.8 , version of techdivision/import-cli-simple is 12.1.1 version of module techdivision/import-cli-simple is 4.2.3
  • indexer is on asynchron

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions