Class DefaultTaxCompensationStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.DefaultTaxCompensationStrategy
- All Implemented Interfaces:
TaxCompensationStrategy
Default implementation of
TaxCompensationStrategy. It returns a fraction of the tax difference proportional with the
fraction of global discounts passed as an argument when the Net flag against AbstractOrderModel is true. It performs
static calculation, not relying on the passed list of AbstractOrderEntryModel.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateTaxCompensationForEntries(AbstractOrderModel abstractOrder, BigDecimal discountFraction, List<AbstractOrderEntryModel> entries) Calculates tax compensation for a given collection ofAbstractOrderEntryModel
-
Field Details
-
SCALE
public static final int SCALE- See Also:
-
-
Constructor Details
-
DefaultTaxCompensationStrategy
public DefaultTaxCompensationStrategy()
-
-
Method Details
-
calculateTaxCompensationForEntries
public BigDecimal calculateTaxCompensationForEntries(AbstractOrderModel abstractOrder, BigDecimal discountFraction, List<AbstractOrderEntryModel> entries) Description copied from interface:TaxCompensationStrategyCalculates tax compensation for a given collection ofAbstractOrderEntryModel- Specified by:
calculateTaxCompensationForEntriesin interfaceTaxCompensationStrategy- Parameters:
abstractOrder- the abstract orderdiscountFraction- the discount fractionentries- the entries- Returns:
- big decimal
-