com.ibm.commerce.taxation.commands

Class TaxableUnitPriceCalculationScaleLookupCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.order.utils.CalculationCmd, com.ibm.commerce.order.utils.CalculationScaleLookupCmd, TaxableUnitPriceCalculationScaleLookupCmd, 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


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

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • TaxableUnitPriceCalculationScaleLookupCmdImpl

        public TaxableUnitPriceCalculationScaleLookupCmdImpl()
        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