magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Salable quantity constantly growing #39211

Open ShapesGraphicStudio opened 1 month ago

ShapesGraphicStudio commented 1 month ago

Preconditions and environment

Steps to reproduce

  1. Navigate to backend
  2. Create shipping for ordered product
  3. Navigate to products
  4. Add one item in product stock

Expected result

Salable quantity should be consistent with quantity in stock.

Actual result

Slaable quantity keeps growing.

Additional information

Before shipping, stock of product shows 1 item and salable quantity shows 3 items.

Capture d’écran 2024-09-25 à 11 17 59

After shipping created with FedEx module, stock of product shows 0 item, product is out of stock and salable items show 0 also.

Capture d’écran 2024-09-25 à 11 18 28

When I put one item back in stock, quantity shows 1 and salable shows 4.

Capture d’écran 2024-09-25 à 11 23 45

If I repeat this operation, quantity shows 1 and salable shows 5 and so on.

This only occurs when shipping has changed the stock.

If I change manually the product back to 0 / out of stock, then 1 / back in stock, salable keeps showing 4 items.

This is very important as we always have very low stock of products (1 or 2) and we produce daily on demand. Having too many items in salable quantity could lead us to not be able to delivery.

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 month ago

Hi @ShapesGraphicStudio. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.

m2-assistant[bot] commented 1 month ago

Hi @engcom-Bravo. 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:

engcom-Bravo commented 1 month ago

Hi @ShapesGraphicStudio,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Before Shipping :

Screenshot 2024-10-01 at 16 11 10

After Shipping with fedex :

Screenshot 2024-10-01 at 16 14 40

When we put item in stock Salable quantity is consistent.

Screenshot 2024-10-01 at 16 15 32

Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible.

Thanks.

ShapesGraphicStudio commented 1 month ago

We do not have simple products, only configurable. And we also have multiple stores. Could it explain the issue and wht you can't reproduce it?

engcom-Bravo commented 5 hours ago

Hi @ShapesGraphicStudio,

Thanks for your update.

We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Before Shipping :

Screenshot 2024-11-12 at 09 51 50

After Shipping with fedex

Screenshot 2024-11-12 at 10 02 21 Screenshot 2024-11-12 at 10 02 46

Salable quantity was consistent for the configurable products when quantity was back in stock.

Thanks.

ShapesGraphicStudio commented 5 hours ago

Hello, Thanks for your answer. We are still experiencing the issue on our side. I have to run the following command as cron everyday after the shipping team ships the orders: bin/magento inventory:reservation:list-inconsistencies -r | bin/magento inventory:reservation:create-compensations

Any idea on what could go wrong on our side?