com.ibm.commerce.taxation.commands
Class TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
java.lang.Object
|
+--CalculationCmdImpl
|
+--com.ibm.commerce.taxation.commands.TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
- All Implemented Interfaces:
-
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd
- public class
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
- extends CalculationCmdImpl
- implements
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd
Appropriate for "per item" "combined sales and shipping"
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 plus the
sum of their shipping charges, 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" plus the shipping charge each divided by its OrderItem
quantity.
- See Also:
-
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
-
- See Also:
-
Constant Field Values
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
public TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl()
getBaseMonetaryAmount
public MonetaryAmount getBaseMonetaryAmount()
getLookupNumber
public java.math.BigDecimal getLookupNumber()
getResultMultiplier
public java.math.BigDecimal getResultMultiplier()
public void performExecute()
throws ECException
-
-
ECException
setCalculationRuleAB
public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
setCalculationScaleAB
public void setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
setOrderItemABHash
public void setOrderItemABHash(java.util.Hashtable orderItemABHash)