-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
Backoffice orders: Item counter accepts values higher than the available stock, which may lead to incorrectly charged orders #5989
Comments
Hi, if no one has started checking this out, I'd like to give it a go. |
Thanks @brymut , please go ahead! 🎉 |
I've gone through the user guides and can confirm/reproduce the 2 parts of the problem reported. Now having a look through the code to try prototype a possible solution. |
Hi @sigmundpetersen , I've started on a draft PR that I think can introduce some client-side validation to solve for part 1, but still need to work out part 2. |
While testing PR #6098 I've found it to be still possible, to add items above available stock, and trigger the whole fail cascade of orders with wrong values by typing stock values (instead of using the arrows): There was already an improvement so, maybe severity could be lowered? |
Fix #5989 Item counter accepts higher amount than available stock
Further fix #5989 (Item counter accepts values higher than the available stock)
Description
It is possible to introduce a number of items above the available stock, when orders are placed in the backoffice. This may lead to charging of higher amounts than the amounts available for shipping, leading to discrepancies between the information seen in the backoffice and that which reaches the customer.
I think it's easier to see this in two parts:
Expected Behavior
Actual Behaviour
Steps to Reproduce
Part 1)
Part 2)
Animated Gif/Screenshot
Part 1)
Part 2)
Workaround
Severity
Proposing a bug-s3: a feature is broken but there is a workaround
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: