inventory icon indicating copy to clipboard operation
inventory copied to clipboard

Products stock status issues with Out-of-Stock Threshold

Open Jitheesh opened this issue 5 years ago • 9 comments

Preconditions (*)

  1. Magento Commerce 2.3.5
  2. MSI modules enabled
  3. PHP 7.2

Steps to reproduce (*)

  1. Make sure MSI modules are enabled
  2. Make sure default stock is configured
  3. Configure Out-of-Stock Threshold value as 10
  4. Create products and set inventory as 11
  5. Check FE - Product should be in stock
  6. Change product qty to 10 and save - Product become out of stock
  7. Now change Out-of-Stock Threshold value to 8 from store configuration
  8. Open product, it will be in stock in BE
  9. Check product on FE, it will be out of stock
  10. Check cataloginventory_stock_item table - product will be in stock
  11. check inventory_source_item table, status will be 0

Expected result (*)

  1. Product stock status should be updated based on Out-of-Stock Threshold configuration change

Actual result (*)

  1. Only cataloginventory_stock_item table is updating based on Out-of-Stock Threshold change

Debug info

  1. 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
  2. There is no observer or Plugin to update MSI inventory tables based on Out-of-Stock Threshold change

Jitheesh avatar May 06 '20 06:05 Jitheesh

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

m2-assistant[bot] avatar May 06 '20 06:05 m2-assistant[bot]

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).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced 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: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar May 08 '20 07:05 m2-assistant[bot]

@magento give me 2.4-develop instance

swathishs avatar May 08 '20 08:05 swathishs

Hi @swathishs. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team avatar May 08 '20 08:05 magento-engcom-team

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.

magento-engcom-team avatar May 08 '20 08:05 magento-engcom-team

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

swathishs avatar May 26 '20 06:05 swathishs

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


m2-assistant[bot] avatar May 28 '20 13:05 m2-assistant[bot]

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?

smoskaluk avatar Jun 05 '20 09:06 smoskaluk

create multi-source and then try it will show you @smoskaluk

JainamDeveloper avatar Mar 29 '24 12:03 JainamDeveloper

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!

engcom-November avatar Oct 13 '25 11:10 engcom-November