Class ApplyCalculationUsageTIKBaseCmdImpl

    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values

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

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

      • ApplyCalculationUsageTIKBaseCmdImpl

        public ApplyCalculationUsageTIKBaseCmdImpl()
        Constructor for ApplyCalculationUsageTIKBaseCmdImpl
      • ApplyCalculationUsageTIKBaseCmdImpl

        public ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
        Constructor for ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
        ataxType - the taxType.
    • Method Detail

      • reset

        public void reset()
        Resets the command properties. Prepares the command for re-execution.
        Specified by:
        reset in interface
        reset in class ApplyCalculationUsageCmdImpl
        See Also:
      • setTransactionType

        public void setTransactionType(char aType)
        This method is used to tell the tax software the type of transaction. The default type is a Sale.

        aType - representing the type of transaction - valid values are
        • 'B' - Backout a previous sale
        • 'C' - Credit
        • 'P' - Purchase
        • 'R' - Return
        • 'S' - Sale
      • getSellerId

        public java.lang.String getSellerId(Item orderItem)
                                     throws ECSystemException
        This method is used to return the seller id that will be passed to the third party tax providers. This value will be passed to the TaxOrderItem object using the setSellerID() method. Also if an item is not associated with a fulfillment center then this value will be passed as the business name using the setBusinessName() method. The default behavior returns the value from the STOREENT.IDENTIFIER table for the store that the item is purchased from.
        orderItem - representing the orderItem
        A string that will be passed to third party vendors as the setSellerID
      • getTotalRecyclingFee

        public java.math.BigDecimal getTotalRecyclingFee()
        Obtains the total recycling fee for this order. This will be a sum of the order item recycling fees.
        the total recycling fee for this order