inventory
inventory copied to clipboard
Products stock status issues with Out-of-Stock Threshold
Preconditions (*)
- Magento Commerce 2.3.5
- MSI modules enabled
- PHP 7.2
Steps to reproduce (*)
- Make sure MSI modules are enabled
- Make sure default stock is configured
- Configure Out-of-Stock Threshold value as 10
- Create products and set inventory as 11
- Check FE - Product should be in stock
- Change product qty to 10 and save - Product become out of stock
- Now change Out-of-Stock Threshold value to 8 from store configuration
- Open product, it will be in stock in BE
- Check product on FE, it will be out of stock
- Check cataloginventory_stock_item table - product will be in stock
- check inventory_source_item table, status will be 0
Expected result (*)
- Product stock status should be updated based on Out-of-Stock Threshold configuration change
Actual result (*)
- Only cataloginventory_stock_item table is updating based on Out-of-Stock Threshold change
Debug info
- admin_system_config_changed_section_cataloginventory Observer is working fine https://github.com/magento/magento2/blob/6b6f428c4b938c209658eb5d75d84b72503cbce0/app/code/Magento/CatalogInventory/etc/events.xml#L40 That's how cataloginventory_stock_item table is updating as expected
- There is no observer or Plugin to update MSI inventory tables based on Out-of-Stock Threshold change
Hi @Jitheesh. Thank you for your report. To help us process this issue please make sure that you provided the following information:
- [ ] Summary of the issue
- [ ] Information on your environment
- [ ] Steps to reproduce
- [ ] Expected and actual results
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance - upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
@Jitheesh do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
- [ ] yes
- [ ] no
- Join Magento Community Engineering Slack and ask your questions in #github channel.
Hi @swathishs. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears. -
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself. -
[ ] 3. Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! -
[ ] 5. Add label
Issue: Confirmedonce verification is complete. -
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.4-develop instance
Hi @swathishs. Thank you for your request. I'm working on Magento 2.4-develop instance for you
Hi @swathishs, here is your Magento instance.
Admin access: https://i-28120-2-4-develop.instances.magento-community.engineering/admin_2788
Login: e629370f Password: 68e685e5773a
Instance will be terminated in up to 3 hours.
Hi @Jitheesh,2 all issue specific for MSI should be reported in the MSI repo
fyi: @sidolov @smoskaluk @sdzhepa
It seems this issue MSI specific and should be fixed in MSI repository.
EngCom team, please confirm and transfer this issue to the https://github.com/magento/inventory/issues
Closing this issue
Hi @Jitheesh. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.
Hi @Jitheesh ! I can't reproduce your issue. Did you do re-index and cache flush after changing your configuration - out of stock threshold value?
create multi-source and then try it will show you @smoskaluk
Hello,
Thank you for your report and collaboration.
Are you still experiencing this issue? Kindly try reproducing it using the latest version and let us know if it persists. If it does, please share the necessary details to help us replicate the problem.
For now, we are marking this ticket closed
If you encounter any other issues or need further assistance, please feel free to reach out.
Thank you!