com.ibm.commerce.taxation.commands
Class UnitShippingCalculationScaleLookupCmdImpl

com.ibm.commerce.taxation.commands.UnitShippingCalculationScaleLookupCmdImpl

public class UnitShippingCalculationScaleLookupCmdImpl

Appropriate for "per item" shipping tax scales, especially where a maximum tax per item may be specified.

Both the "lookup number" and the "base monetary value" are the sum of the shipping charges for the OrderItems, divided by the "result multiplier". 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 shipping charges, each divided by its OrderItem quantity.


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
UnitShippingCalculationScaleLookupCmdImpl()
           
 
Method Summary
 MonetaryAmount getBaseMonetaryAmount()
           
 java.math.BigDecimal getLookupNumber()
           
 java.math.BigDecimal getResultMultiplier()
           
 void performExecute()
           
 void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
           
 void setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
           
 void setOrderItemABHash(java.util.Hashtable orderItemABHash)
           
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

UnitShippingCalculationScaleLookupCmdImpl

public UnitShippingCalculationScaleLookupCmdImpl()
Method Detail

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)