Avoid inventory over-rollback
Closed this issue · 0 comments
gdlcf88 commented
We should forbid users from canceling orders during the inventory reduction state.
Currently, we can cancel orders during the inventory reduction state. After the order is canceled, the InventoryRollbackOrderCanceledEventHandler
will roll back (increase) the inventory. However, the above inventory reduction action could be failed, which cause the inventory over-rollback.