Can create order with item quantity > max available quantity
Found in
EPiServer.Commerce 9.19.0
Fixed in
EPiServer.Commerce 9.21.0
Created
Jul 11, 2016
Updated
Aug 19, 2016
Area
Core
State
Closed, Fixed and tested
Description
Precondition: A line item with a max available quantity setting of 8.
Steps to reproduce:
- Go to commerce manager.
- Select order management.
- Click New Order to create new order.
- Click New Item to add a line item.
- Select a line item (for example, Accessories-Electronics-200WattsAMFMCDReceiver-sku), then click Configure Selected Entry.
- Enter an Input Quantity of 7 then add the item to the order.
- Repeat steps 4 to 6 > the total count for item Accessories-Electronics-200WattsAMFMCDReceiver-sku is 14.
- Complete other mandatory fields and click OK.
Expected: Should adjust second line item to 1 (because max available quantity = 8) and recalculate the order.
Actual: Order with these line items is created.