elgentos / magento2-inventory-log

Magento 2 - Inventory Log
29 stars 11 forks source link

"Inventory-log" module with MSI #13

Open sagonne opened 2 years ago

sagonne commented 2 years ago

Hello,

We are using Magento 2.4.3-p1 with MSI. The "Inventory-log" module doesn't seem to work with MSI. With MSI, there is no link in the product sheet to access the logs. Has anyone ever used this module with MSI? Is there a way to use it with MSI?

Thank you in advance for your help.

sprankhub commented 8 months ago

It's actually not only that it is not displayed on the product edit page. You could theoretically still have a look at Reports > Stock Movement. However, the module currently only adds SQL triggers to cataloginventory_stock_item. MSI doesn't use this table any more. Instead, stock changes are written to inventory_source_item. Therefore, the module would need to be extended. This would probably also mean that kiwicommerce_stock_movement would need to be extended by a new column like source_code to define in which MSI source the qty was actually changed.

@peterjaap, am I missing something, or do you really only use the module with clients that have MSI completely disabled / removed / replaced?

peterjaap commented 8 months ago

@sprankhub we deliberately don't use MSI on any project, so you are correct; we really only use the module with clients without MSI.

sprankhub commented 8 months ago

Thanks for your feedback, @peterjaap! Would you accept a PR adding MSI support, though? Not sure if I get to this (depends on the client), but I wanted to check before anyway :)

peterjaap commented 8 months ago

@sprankhub ofcourse!