Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing line item quantities on cancelled orders leads to stock management discrepancies #7166

Closed
filipefurtad0 opened this issue Mar 19, 2021 · 0 comments · Fixed by #7287
Assignees
Labels
bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround.

Comments

@filipefurtad0
Copy link
Contributor

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 an on_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

  1. Set a on_hand amount for a variant to = 3
  2. Place an order with a line item, quantity: 3
  3. Check your stock: Expect it to be out of stock.
  4. Cancel the order.
  5. Check your stock again: Expect it to = 3. (cancelling an order automatically returns the item)
  6. Edit the order.
  7. Set the quantity for that item to = 0; or click the trash bin and remove the line item.
  8. Check your stock again: It is now = 6.... (twice as much as in the beginning...)

Animated Gif/Screenshot

Steps 6 - 8:

Peek 2021-03-19 10-29

Workaround

Severity

A customer can place orders when the displayed stock does not display the original settings - s2 i think

Your Environment

  • Version used: v3.6.8
  • Browser name and version: Firefox 86
  • Operating System and version (desktop or mobile): Ubuntu 20.04

Possible Fix

@filipefurtad0 filipefurtad0 changed the title Changing line item quantities leads to stock management discrepancies, in canceleld orders Changing line item quantities on canceleld orders leads to stock management discrepancies Mar 19, 2021
@sigmundpetersen sigmundpetersen changed the title Changing line item quantities on canceleld orders leads to stock management discrepancies Changing line item quantities on cancelled orders leads to stock management discrepancies Mar 22, 2021
@mkllnk mkllnk self-assigned this Mar 25, 2021
@mkllnk mkllnk added the bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround. label Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants