Description
Describe the bug
Checkout is validating quantity wrong for Products which are set to ManageInventoryMethod.ManageStock, StockQuantity=1, BackorderMode.NoBackOrders (with cart set to AddProductsToBasketInSinglePositions).
It gets the quantityToValidate here but then adds the quantity again here which then adds the insufficient stock warning.
Why is the quantity added again to quantityToValidate? Shouldn't quantityToValidate just be set to the quantity of the sum?
To Reproduce
Steps to reproduce the behavior:
Create a product with these settings: ManageInventoryMethod.ManageStock, StockQuantity=1, BackorderMode.NoBackOrders.
Set the cart to single position adding.
Put the product into the shopping cart and try going to checkout.
Desktop (please complete the following information):
- OS: Win10x64, Linux x64
- Browser Chrome