ERP Reservation Cleaner
Composer kowal/reservation-cleaner · Version 1.0.2
Product page
ERP Reservation Cleaner — kowal.co
Description
Count or clear Magento MSI stock reservations in stores where an ERP or WMS supplies the authoritative stock figures.
For whom
For administrators reconciling stock after an ERP import who know how outstanding Magento orders are reflected in the source data.
Features
- Count reservations in log_only mode.
- Limit operations to selected MSI stocks.
- Run from CLI or cron with a lock against overlapping runs.
Installation
From the Magento root, with Composer access to the Kowal package, run
composer require kowal/reservation-cleaner
bin/magento module:enable Kowal_ReservationCleaner
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- Under Stores → Configuration → Kowal → ERP Reservation Cleaner, select Mode → log_only, choose the allowed environment and enable the module.
- Select the stocks to reconcile under Selected Stocks. Verify the selection before setting the cron hour and minute.
- If clearing after an import, arrange for the job to run after ERP synchronisation completes. Configure any required reindex or cache clean separately.
Requirements / notes
Removing reservations can change salable quantity even when physical stock stays the same. Before enabling a mode that writes changes, establish whether the ERP figures already account for open Magento orders.
FAQ
Does clean_after_erp_sync wait for an import completion signal?
This mode performs a cleanup similar to full_reset. Your scheduler or ERP integration must ensure that the import completes first.
Verify the installation
bin/magento module:status Kowal_ReservationCleaner
On staging, run bin/magento kowal:reservation:clean --mode=log_only --stocks=1, replacing 1 with the intended stock ID. Compare the reported row count with reservations for that stock and confirm that its salable quantity stays unchanged.