Wrong shipping tax when applying order promotion to zero for cart with different items

Found in

EPiServer.Commerce 9.16.0

Fixed in

EPiServer.Commerce 9.19.0

Created

May 26, 2016

Updated

Jul 06, 2016

State

Closed, Fixed and tested


Description

Precondition: Configure shipping tax for item with rate = 50%
Steps to reproduce:

  1. Create an order promotion "Discount of order value" or "Buy product and get discount on order" with amount off = 3000.
  2. Add to the cart 3 items that satisfy the promotion and have a shipping tax.
  3. Go to the checkout page.
  4. Select a shipping address that has tax.

Expected: Commerce calculates and shows shipping tax correctly.

Actual: Shipping tax = shipping tax on order * quantity. So it exceeds the shipping cost. In this case shipping tax = 12*50%*3= 18.