Try our conversational search powered by Generative AI!

Can create order with item quantity > max available quantity

Found in

EPiServer.Commerce 9.19.0

Fixed in

EPiServer.Commerce 9.21.0

(Or a related package)

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:

  1. Go to commerce manager.
  2. Select order management.
  3. Click New Order to create new order.
  4. Click New Item to add a line item.
  5. Select a line item (for example, Accessories-Electronics-200WattsAMFMCDReceiver-sku), then click Configure Selected Entry.
  6. Enter an Input Quantity of 7 then add the item to the order.
  7. Repeat steps 4 to 6 > the total count for item Accessories-Electronics-200WattsAMFMCDReceiver-sku is 14.
  8. 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.