Changing line item quantities on cancelled orders leads to stock management discrepancies #7166
Labels
bug-s2
The bug is affecting any of the non-critical features described in S1 and there is no workaround.
Description
When an order is cancelled, the quantity from a given line item is returned to the
on_hand
amount, for that variant.After this it is possible to edit the order, and reduce the line item amount or remove the line item, which also returns them to the
on_hand
amount. Doing so ends up with anon_hand
increased amount, up to 2x the initial one.Expected Behavior
It should not be possible to change the amount of a line item or to remove a line item, in cancelled orders; to do so, the order should be resumed.
Actual Behaviour
It is possible to change the amount of a line item or to remove a line item, in cancelled orders, without resuming the order.
Steps to Reproduce
on_hand
amount for a variant to = 3item
,quantity
: 3quantity
for thatitem
to = 0; or click the trash bin and remove the line item.Animated Gif/Screenshot
Steps 6 - 8:
Workaround
Severity
A customer can place orders when the displayed stock does not display the original settings - s2 i think
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: