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:
1) the item counter in the backoffice orders
2) the creation of orders which charge the incorrect amount
1) The item counter should not accept values higher than the available stock, for that specific product.
2) The values charged in the order should match their actual value. If more was charged, then the order should have an orange-colored "Credit Owed" state, instead of green "Paid".
1) If added in a stepwise manner, the item counter in backoffice orders accepts values higher than the available stock, for that specific product.
2) If unaware of 1) the user may place an order which charges value higher than its real cost
Part 1)
Part 2)
Part 1)

Part 2)





Proposing a bug-s3: a feature is broken but there is a workaround
Hi, if no one has started checking this out, I'd like to give it a go.
Thanks @brymut , please go ahead! 馃帀
Don't hesitate to ask if you have any questions!
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?