In the BO => Orders page => New Order page => when we try to add an out of stock product with allowing order, the increment/decrement button doesn't work
In this PR: https://github.com/PrestaShop/PrestaShop/pull/20714 we just fixed when the quantity of product = 0
But when the quantity product < 0 => NOK
Steps to reproduce the behavior:
Screenshots
https://drive.google.com/file/d/1WS2cfkW-_EVms0IPYD5FFunCpOnc6_Tz/view?usp=sharing
Thanks for opening this issue! We will help you to keep its state consistent
Hi @khouloudbelguith
But ... you have a negative stock right ?
Thanks
@PululuK, yes!
If you have Allow orders as behavior when out of stock => We can have negative stock.
Steps to reproduce it for example:
Product quantity = 1 with Allow orders when out of stock
From the FO, a customer adds to the cart 3 products => checkout
In this case we have a product quantity = -2 < 0
Thanks!
@PululuK You can configure the products to authorize to be ordered out of stock via Product::out_of_stock
@PululuK You can configure the products to authorize to be ordered out of stock via
Product::out_of_stock
Yes I know, I misunderstood the description ... I'm sorry !
Fixed by #21555
Most helpful comment
Yes I know, I misunderstood the description ... I'm sorry !