java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.returns.commands.CalculateReturnTaxCmdImpl
Default implementation of the CalculateReturnTaxCmd interface. Calculate the tax for a return mechandise authorization (RMA) item. Calls GetReturnTaxesCmd for RMA items associated with an order item. Tax credit for RMA items not associated with an order item defaults to zero.
Utilizes these access beans
Field Summary |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.CalculateReturnTaxCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CalculateReturnTaxCmdImpl() ReturnItemCreditCalculateCmdImpl constructor. |
Method Summary | |
protected void | applyRMATaxes(java.lang.Long aRMAId, java.lang.Long aOrderId, java.util.Hashtable aOrderRMATaxes) Set taxes in RMA specific tax database tables, but not in the RMA items. |
protected MonetaryAmount | calculateRMAItemsTaxCredit(RMAItemAccessBean aRMAItemAB, OrderItemAccessBean aItemAB) Calculate tax credit for a RMA item |
java.util.Vector | getTaxCredits() Get the calculated tax credits for the returned/refunded item. |
void | initRMATaxes(java.lang.Long aRMAId) Clean out RMA item tax credit that may already be in database |
void | performExecute() Execute the command. |
void | setRMAItemABs(java.util.Vector aRMAItemABVec) Set the vector of RMAItems for which the tax credits are to be calculated. |
void | setTaxCredits(java.lang.Long RMAItemId, MonetaryAmount aItemTaxCredit) Insert tax credits in vector in the same order as command was called |
void | validateParameters() Check mandatory parameters. |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CalculateReturnTaxCmdImpl()
Method Detail |
protected void applyRMATaxes(java.lang.Long aRMAId, java.lang.Long aOrderId, java.util.Hashtable aOrderRMATaxes) throws ECException
protected MonetaryAmount calculateRMAItemsTaxCredit(RMAItemAccessBean aRMAItemAB, OrderItemAccessBean aItemAB) throws ECException
public java.util.Vector getTaxCredits()
public void initRMATaxes(java.lang.Long aRMAId) throws ECException
public void performExecute() throws ECException
public void setRMAItemABs(java.util.Vector aRMAItemABVec)
public void setTaxCredits(java.lang.Long RMAItemId, MonetaryAmount aItemTaxCredit) throws ECException
public void validateParameters() throws ECException
Parameters
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.