Magento – Salable Quantity is greater than quantity

quantitystock

My salable quantity is greater than my quantity. How has this happened? I recently updated to Magento 2 and have been trying to get my head around the MSI but still can't figure out how salable quantity is more than quantity in the case of this and some other products. With the result that I am overselling on stock.

enter image description here

Ideally I would work only from simple stock quantity but I when I disable the manage stock option, I then oversell on the front end as there is no stock control.

Best Answer

Based on your description the root cause of the problem could be one of those:

  1. You have upgraded to Magento 2.3 from the previous version of Magento where you had some orders placed, but not shipped. As since Magento 2.3 the stock deduction logic has changed drastically and now Magento places reservation at the time of Order placement (negative reservation) and then compensate it at the time of Shipment creation (positive reservation), you face the problem that Magento compensates the reservation which in fact was not created (because an order has been placed on older version of Magento.). You can read more about this here - https://github.com/magento-engcom/msi/wiki/Salable-Quantity-Calculation-and-Mechanism-of-Reservations

  2. another reason for getting this issue is that you had Inventory Configuration Manage Stock = false. With this config option, Magento does not place a reservation at the time of order placement. But then you decided to switch Stock management On, and placing shipment you overcompensated with positive reservation (similar as case 1)

Related Topic