Download the PHP package ampersand/magento2-disable-stock-reservation without Composer
On this page you can find all versions of the php package ampersand/magento2-disable-stock-reservation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ampersand/magento2-disable-stock-reservation
More information about ampersand/magento2-disable-stock-reservation
Files in ampersand/magento2-disable-stock-reservation
Download ampersand/magento2-disable-stock-reservation
More information about ampersand/magento2-disable-stock-reservation
Files in ampersand/magento2-disable-stock-reservation
Vendor ampersand
Package magento2-disable-stock-reservation
Short Description This module disables the inventory reservation logic introduced as part of MSI in Magento 2.3.3
License
Package magento2-disable-stock-reservation
Short Description This module disables the inventory reservation logic introduced as part of MSI in Magento 2.3.3
License
Please rate this library. Is it a good library?
Informations about the package magento2-disable-stock-reservation
AmpersandHQ/magento2-disable-stock-reservation
This module disables the inventory reservation logic introduced as part of MSI in Magento 2.3.3 - see https://github.com/magento/inventory/issues/2269 for more information about the way MSI was implemented, and the issues that can happen with external WMS integrations.
The Problem
During the order placement and fulfilment processes, Magento's MSI implementation will not decrement stock on order placement - it will only do so on order shipment and refund.
Our Approach
This module will:
- Prevent all writes to the
inventory_reservation
table. It does so by using anaround
plugin onPlaceReservationsForSalesEventInterface
- Trigger stock deductions on order placement. See
inventory_sales_source_deduction_processor
plugin onMagento\Sales\Model\Service\OrderService
. - Prevent stock deductions on order shipment. See disabled
inventory_sales_source_deduction_processor
observer onsales_order_shipment_save_after
event. - Replenish stock for cancelled order items. See
inventory
observer onsales_order_item_cancel
event. - Replenish stock when a credit memo is issued. See
src/Observer/RestoreSourceItemQuantityOnRefundObserver.php
- Requires that "Back to stock" is checked or "Automatically Return Credit Memo Item to Stock" is configured
- https://docs.magento.com/user-guide/configuration/catalog/inventory.html#product-stock-options
- Truncate (ie, remove all historic entries from) the
inventory_reservation
table upon installation.
Additional Notes
- Both the
inventory
andcataloginventory_stock
should be on the same mode (Update on Save
orSchedule
) for this module to work as expected. If you are running this onSchedule
you should have crons activated.
All versions of magento2-disable-stock-reservation with dependencies
PHP Build Version
Package Version
The package ampersand/magento2-disable-stock-reservation contains the following files
Loading the files please wait ....