com.ibm.commerce.taxation.commands
Class TaxableUnitPriceCalculationScaleLookupCmdImpl
com.ibm.commerce.taxation.commands.TaxableUnitPriceCalculationScaleLookupCmdImpl
- All Implemented Interfaces:
- TaxableUnitPriceCalculationScaleLookupCmd
- public class TaxableUnitPriceCalculationScaleLookupCmdImpl
- implements TaxableUnitPriceCalculationScaleLookupCmd
Appropriate for "per item" sales tax scales, especially where a maximum
tax per item may be specified. (Only appropriate when the PerOffer
attribute of the CalculationCode is true.)
Both the "lookup number" and the "base monetary value" are the sum of
the "taxable net prices" of the OrderItems, divided by the "result
multiplier". (Use the CalculationRule to determine the TaxCategory).
The "lookup number" is converted to the currency specified by the currStr
attribute of the CalculationScale. The "result multiplier" is the sum of
the OrderItem quantities. The mathematical weights are the "taxable
net prices" each divided by its OrderItem quantity.
Field Summary |
static java.lang.String |
COPYRIGHT
|
COPYRIGHT
public static final java.lang.String COPYRIGHT
TaxableUnitPriceCalculationScaleLookupCmdImpl
public TaxableUnitPriceCalculationScaleLookupCmdImpl()
getBaseMonetaryAmount
public MonetaryAmount getBaseMonetaryAmount()
getLookupNumber
public java.math.BigDecimal getLookupNumber()
getResultMultiplier
public java.math.BigDecimal getResultMultiplier()
performExecute
public void performExecute()
throws ECException
setCalculationRuleAB
public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
setCalculationScaleAB
public void setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
setOrderItemABHash
public void setOrderItemABHash(java.util.Hashtable orderItemABHash)