Interface TaxCompensationStrategy
- All Known Implementing Classes:
DefaultTaxCompensationStrategy
public interface TaxCompensationStrategy
Interface exposing methods to calculate tax compensation when order level discounts are applied on a net
AbstractOrderModel
and distributed across order entries generating discrepancies on applied taxes-
Method Summary
Modifier and TypeMethodDescriptioncalculateTaxCompensationForEntries(AbstractOrderModel abstractOrder, BigDecimal discountFraction, List<AbstractOrderEntryModel> entries) Calculates tax compensation for a given collection ofAbstractOrderEntryModel
-
Method Details
-
calculateTaxCompensationForEntries
BigDecimal calculateTaxCompensationForEntries(AbstractOrderModel abstractOrder, BigDecimal discountFraction, List<AbstractOrderEntryModel> entries) Calculates tax compensation for a given collection ofAbstractOrderEntryModel- Parameters:
abstractOrder- the abstract orderdiscountFraction- the discount fractionentries- the entries- Returns:
- big decimal
-