com.ibm.commerce.taxation.commands

Class UnitShippingCalculationScaleLookupCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.order.utils.CalculationCmd, com.ibm.commerce.order.utils.CalculationScaleLookupCmd, com.ibm.commerce.order.utils.WeightCalculationScaleLookupCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 

    public class UnitShippingCalculationScaleLookupCmdImpl
    extends com.ibm.commerce.order.utils.CalculationCmdImpl
    implements com.ibm.commerce.order.utils.WeightCalculationScaleLookupCmd
    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.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Deprecated. 
        See Also:
        Constant Field Values
    • Constructor Detail

      • UnitShippingCalculationScaleLookupCmdImpl

        public UnitShippingCalculationScaleLookupCmdImpl()
        Deprecated. 
    • Method Detail

      • getBaseMonetaryAmount

        public MonetaryAmount getBaseMonetaryAmount()
        Deprecated. 
        Specified by:
        getBaseMonetaryAmount in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd
      • getLookupNumber

        public java.math.BigDecimal getLookupNumber()
        Deprecated. 
        Specified by:
        getLookupNumber in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd
      • getResultMultiplier

        public java.math.BigDecimal getResultMultiplier()
        Deprecated. 
        Specified by:
        getResultMultiplier in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd
      • performExecute

        public void performExecute()
                            throws ECException
        Deprecated. 
        Description copied from class: AbstractECTargetableCommand
        This method performs the business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setCalculationRuleAB

        public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
        Deprecated. 
        Specified by:
        setCalculationRuleAB in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd
      • setCalculationScaleAB

        public void setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
        Deprecated. 
        Specified by:
        setCalculationScaleAB in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd
      • setOrderItemABHash

        public void setOrderItemABHash(java.util.Hashtable orderItemABHash)
        Deprecated. 
        Specified by:
        setOrderItemABHash in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd