Re-structure calculators

Fixed in

EPiServer.Commerce 12.0.0

(Or a related package)

Created

Mar 23, 2017

Updated

Dec 19, 2023

State

Closed, Acceptance tests pass


Description

The calculators are re-structured to make them work more efficiently. The tax calculator calculates only tax values at the lowest level: line item. The tax calculations for shipment, order form, and order group are moved to corresponding calculators.
The default implementations for calculations are also improved, so they reduce unnecessary calls to calculators when getting tax values of order entities or getting shipping cost of shipments.