com.ibm.commerce.isv.kit.tax

Class ApplyCalculationUsageTIKCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ApplyCalculationUsageTIKBaseCmd, ApplyCalculationUsageTIKCmd, ApplyCalculationUsageCmd, CalculationCmd, 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 ApplyCalculationUsageTIKCmdImpl
    extends ApplyCalculationUsageTIKBaseCmdImpl
    implements ApplyCalculationUsageTIKCmd
    The ApplyCalculationUsageTIKCmd Task Command Implementation is called by the OrderPrepareCmd Controller Command to set the different tax amounts (for example
    GST
    ,
    PST
    and so forth) for each OrderItem supplied by
    OrderPrepare
    .

    Given a set of OrderItems in a particular Order this command invokes the CalculationCodeCombineCmd task command to determine which

    CalculationCodes
    should be applied to which OrderItems. CalculationCodeCombineCmd returns a list of elements where each element is a
    CalculationCode
    and a list of OrderItems to which the
    CalculationCode
    is applicable.
    See Also:
    Item,

    With the list of OrderItems and the

    CalculationCode
    , ApplyCalculationUsageTIKCmd uses the TaxOrderCmd and TaxOrderItemCmd interfaces. The TaxOrderCmd and TaxOrderItemCmd interface is provided in the Tax Integration Interface to invoke a tax calculation module. This tax calculation module, calculates the tax amounts for each of the OrderItems.

    If the command is successful, it will set the tax amounts in ORDERITEMS., Serialized Form

    • Field Detail

      • BIG_DECIMAL_ZERO

        public static final java.math.BigDecimal BIG_DECIMAL_ZERO
        The big decimal zero field
      • DOUBLE_ZERO

        public static final java.lang.Double DOUBLE_ZERO
        The double zero field
    • Constructor Detail

      • ApplyCalculationUsageTIKCmdImpl

        public ApplyCalculationUsageTIKCmdImpl()
        Constructor for ApplyCalculationUsageTIKCmdImpl