Following a recent update to Magento version to 2.4.8-p4, changes to how inventory is managed have presumably been implemented which are impacting order and stock management.
Previously, stock for products was reduced at the time of order, however stock is now only being reduced at the time of shipment. The setting Decrease Stock When Order is Placed is enabled.
This is impacting order management, particularly for products that have a lower quantity than is ordered. Magento inventory is updated at specific times during the week with new stock, which means there is often stock on hand, but Magento has not yet been updated. As such, products have Backorders set to Allow Qty Below 0.
This is how the system worked prior to the update:
- Stock in Magento for SKU xyz is 1 / actual stock on hand is 10
- Customer buys 3 x SKU xyz
- Stock in Magento for SKU xyz is reduced to -2
- Order is shipped, qty remains -2 OR Qty is updated to 7 (10 – 3), order is shipped, qty remains 7
Now, we are seeing the following instead:
- Stock in Magento for SKU xyz is 1
- Customer buys 3 x SKU xyz
- Stock in Magento for SKU xyz remains 1
- Order cannot be shipped, the error
Not all of your products are available in the requested quantity.is received on attempted shipment, as qty would effectively be reduced to -2 with shipment but negative values are no longer allowed at time of shipment
This is extremely inconvenient and it would be preferable to revert to the previous method of inventory management.
I am unable to locate where this can be managed though, as the obvious setting is Decrease Stock When Order is Placed and that’s already enabled.