Roll back inventory after order cancellation
gdlcf88 opened this issue · 0 comments
gdlcf88 commented
When an order is being canceled:
- If the InventoryStrategy is
ReduceAfterPayment
- If the order is NOT paid -> No need to roll back inventory.
- If the order is paid -> Do not roll back inventory. Cancellers (admins) can roll it back manually if necessary.
- If the InventoryStrategy is
ReduceAfterPlacing
- If the order is NOT paid -> Do roll back inventory.
- If the order is paid -> Do not roll back inventory. Cancellers (admins) can roll it back manually if necessary.
Should create an InventoryRollbackOrderCanceledEventHandler
class to handle the OrderCanceledEto
event. It will try to roll back the inventory after the order is canceled.