Try our conversational search powered by Generative AI!

Wrong invalidated discount when combining with promotion

Found in

EPiServer.Commerce 12.1.0

Fixed in

EPiServer.Commerce 12.4.0

(Or a related package)

Created

May 08, 2018

Updated

Jul 09, 2018

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Create a new discount: "Buy Puma shoes, get 50% off".
  2. Check out an order that includes 1 pair of Puma shoes.
    --> See that both promotions are applied ("Buy Puma shoes get 50% off" is applied after "20% off Mens Shoes").
  3. Complete the above order.
  4. Create a return for above order (1 pair of Puma shoes).

Expected:
Invalidated discount is correct for both promotions.

Actual:
Invalidated discount of promotion "Buy Puma shoes get 50% off" is equal to the total invalidated discount of 2 promotions. And Return Total is wrong too.

*NOTE: In Release 11.8.3, the Invalidated Discount is wrong (as described above), but the Return Total still correct.