com.ibm.commerce.returns.commands

Class CalculateReturnTaxCmdImpl

    • Constructor Detail

      • CalculateReturnTaxCmdImpl

        public CalculateReturnTaxCmdImpl()
        ReturnItemCreditCalculateCmdImpl constructor.
    • Method Detail

      • getTaxCredits

        public java.util.Vector getTaxCredits()
        Get the calculated tax credits for the returned/refunded item. The result of this is used by ReturnPrepare to set the tax amount in each RMA item.
        Specified by:
        getTaxCredits in interface CalculateReturnTaxCmd
        Returns:
        the amount of the tax credits (in the same currency of the orderItem).
      • initRMATaxes

        public void initRMATaxes(java.lang.Long aRMAId)
                          throws ECException
        Clean out RMA item tax credit that may already be in database
        Parameters:
        aRMAId - RMA id
        Throws:
        ECException
      • setRMAItemABs

        public void setRMAItemABs(java.util.Vector aRMAItemABVec)
        This method sets the vector of RMAItems for which the tax credits are to be calculated.
        Specified by:
        setRMAItemABs in interface CalculateReturnTaxCmd
        Parameters:
        aRMAItemABVec - the orderItem access bean vector.
      • setTaxCredits

        public void setTaxCredits(java.lang.Long rmaItemId,
                                  MonetaryAmount aItemTaxCredit)
                           throws ECException
        Insert tax credits in vector in the same order as command was called
        Parameters:
        rmaItemId - RMA item id
        aItemTaxCredit - RMA item tax credit
        Throws:
        ECException
      • validateParameters

        public void validateParameters()
                                throws ECException
        Check mandatory parameters. Checks the following parameters:

        Parameters

        • StoreAccessBean
          • StoreAccessBean passed in the command context

        If there is no StoreAccessBean, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException