Wrong return total when combining item and order discounts
Found in
EPiServer.Commerce 12.3.1
Fixed in
EPiServer.Commerce 12.6.0
Created
Jul 03, 2018
Updated
Aug 20, 2018
State
Closed, Fixed and tested
Description
Precondition:
There are 3 promotions
- Buy 3 fashions at fixed price, $100 (first priority).
- Buy 3 fashions, get 1 cheapest free (second priority).
- Buy 3 fashions, get $10 off on order ( third priority - order discount type).
Steps to reproduce:
- Place order with 3 Puma Red (unit price $52.50) => All 3 promotions are applied.
- After the first promotion, 3 Puma Reds have a price $100.
- After the second promotion, 3 Puma Reds have a price of $66.67.
- After the third promotion, 3 Puma Reds have a price $56.67.
- => With a shipping cost of $20, the order total is $76.67.
- Complete the order.
- Create a return of 1 Puma Red.
Expected: After returning 1 puma red, all discounts are invalidated. The remaining 2 puma reds have a price of $105 => Return total should be $0.
Actual: Return total is $38.33.