Option to enable/disable stock reservations
Description (*)
This is a followup to #2269 . The original issue was implied that it is a bug and was closed on the basis that the current functionality was intended.
I would like to raise it again but this time as a feature request on the basis that there are many users who are running into problems with this when using warehouse and inventory management systems. Whilst the reservation feature is genuinely great under certain circumstances, the option to enable and disable it would be extremely useful.
Expected behavior (*)
- Optionally enable or disable the stock reservations feature.
Benefits
A summary of how this would improve Magento and an example use case has been well explained by @Swahjak in the below comment:
https://github.com/magento/inventory/issues/2269#issuecomment-499479576
Quoted:
I'm not talking about turning off 'Manage stock' but a simple decrease would suffice since we rely on an external system to actually 'compute' what we want to happen to the stock. If a refund is created, the external system will decide whether or not the item should be returned to stock.
Take the following scenario;
- We have a stock of 2 Product A
- User buys product A
- Magento decreases salable quantity by 1 resulting in 1 salable unit
- External system decreases salable quantity by 1 resulting in 1 salable unit
- External system pushes stock level back to Magento
- Product A is no longer salable since the quantity is 1, reservation is 1, and salable quantity is 0
Now we could argue that the external system should be pushing the quantity, not the salable quantity. But what if I have some other logic in my external system? Let's say a POS that can also reserve stock in my external system. Now my external system communicates a stock level of 2 while only 1 is available.
Point being; My external system is the source of truth, not Magento. Magento is 'just' my storefront. Something which worked perfectly before MSI. (Not bashing on MSI, just stating the facts).
Hi @vseager. 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.
+1 very important to turn off .... also the source selection then applies again directly upon sale allowing th admin to see "where" this product will be sourced from ... in addition you can again show the customer information of where the item will be sourced from its almost ridiculous that we have completely lost the ability to let customers know delivery times and sending locations and where the order is coming from. Why?!
+1 The stock reservation prevents, that a completed shipping can be set to be shipped (complete) via API. Most orders remain "processing" and i also can not set it in the backend manually.
Manage Stock = True (is_in_stock) Decrease quantities = False (unlimited quanitites)
(German backend) [2020-07-24 13:55:13] main.CRITICAL: Die Sendung konnte nicht gespeichert werden. {"exception":"[object] (Magento\Framework\Exception\CouldNotSaveException(code: 0): Die Sendung konnte nicht gespeichert werden. at /var/www/XXXXXXXXXXXXXXXXXXXX/vendor/magento/module-sales/Model/Order/ShipmentRepository.php:150, Magento\Framework\Exception\LocalizedException(code: 0): Nicht alle Ihrer Produkte sind in der gewünschten Menge verfügbar. at /var/www/XXXXXXXXXXXXXXXXXXXX/vendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php:98)"} []
+1
Large merchant here, same exact problems
The stock reservation prevents, that a completed shipping can be set to be shipped (complete) via API. Most orders remain "processing" and i also can not set it in the backend manually.
So we have 1000s or orders sitting in processing that has actually with little or no way to fix them.
Stock reservations should be able to be disabled. This feature has caused quite the data nightmare for us.
We're facing the exact same situation as described in https://github.com/magento/inventory/issues/2269#issuecomment-499479576 It's currently impossible to use any external system to manage stock information. Right now we have to disable the stock with https://github.com/yireo/magento2-replace-inventory but we'd prefer (for future proofing) to be able to just skip the reservations. Eg. just decrease the qty order from the available qty directly, so when the ERP/external stock system overwrites it, it is taken 'as is'. Or reset the stock reservations each time the stock is updated.
I think reservations = not going away (no matter my or our opinion)
But what needs to be fixed is the situation as you explain. Upon sale (and quote) stock should be assigned
-
an MSI source (so reservations are made on source level, as an 'intended' source to ship from)
-
stock updates from external systems should take the reservations from 'that source' (so depends on 1) into account and then do the stock update. So imported stock is: import qty -minus- reserved orders for the source = final stock update
On Tue, Dec 15, 2020 at 9:39 AM Barry vd. Heuvel [email protected] wrote:
We're facing the exact same situation as described in #2269 (comment) https://github.com/magento/inventory/issues/2269#issuecomment-499479576 It's currently impossible to use any external system to manage stock information. Right now we have to disable the stock with https://github.com/yireo/magento2-replace-inventory but we'd prefer (for future proofing) to be able to just skip the reservations. Eg. just decrease the qty order from the available qty directly, so when the ERP/external stock system overwrites it, it is taken 'as is'. Or reset the stock reservations each time the stock is updated.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/magento/inventory/issues/3076#issuecomment-745139703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE7I22C22OL4VCMGAK66E3SU4OC7ANCNFSM4NT6M7UQ .
The whole Magento 2 reservation system is broken. We can not use this software anymore until the reservation system can be disabled. Additional external API calls on order fulfilment does not work (no shipping number/order update) because the stock reservation system want to see stock on delivery day. So while the API tells Magento, that the goods has been physically dispatched, Magento tells the API that this is not possible.
As a workaround we will have to remove everything that has to do with the broken reservation system.
reservations should be disabled or give instruction how they can be deleted by cron task (without giving other problems)