Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Error when returning part of order to which manual discount applied

Found in

EPiServer.Commerce 12.3.1

Fixed in

EPiServer.Commerce 12.5.0

(Or a related package)

Created

Jun 27, 2018

Updated

Jul 30, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Go to CommerceManager.
  2. Create a new order with 3 items (A) that has manual discount (no other discounts).
  3. Complete the order.
  4. Create a return order for 1 of item A

Expected:
Can return 1 item A normally.

Actual:
Exception Details: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.