Try our conversational search powered by Generative AI!

GetSubTotal methods use ExtendedPrice instead of DiscountedPrice

Found in

EPiServer.Commerce 9.20.0

Fixed in

EPiServer.Commerce 11.0.0

(Or a related package)

Created

Aug 10, 2016

Updated

Jul 26, 2017

Area

Core

State

Closed, Fixed and tested


Description

The following signatures/methods are using ExtendedPrice instead of DiscountedPrice, which is wrong (...or at least not what you would expect in most cases, since extended price includes order-level discount):

IOrderGroupCalculator.GetSubTotal
DefaultOrderGroupCalculator.GetSubTotal
DefaultOrderGroupCalculator.CalculateSubTotal

IOrderFormCalculator.GetSubTotal
DefaultOrderFormCalculator.GetSubTotal
DefaultOrderFormCalculator.CalculateSubTotal

IShippingCalculator.GetShippingItemsTotal
DefaultShippingCalculator.GetShippingItemsTotal
DefaultShippingCalculator.CalculateShippingItemsTotal

We should change the implementations of these methods to use DiscountedPrice instead.