java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.returns.commands.CalculateReturnItemAdjustmentCreditCmdImpl
Default implementation of the CalculateReturnItemAdjustmentCreditCmd interface. Calculate the adjustment credit for a return mechandise authorization (RMA) item. Entries in the RMAIADJCRD table are first removed then re-calculated for the rma item based on the adjustments of the order item. Each order item adjustment is pro-rated based on the RMA quantity. This command also sets the total adjustment credit which the calling command can retrieve.
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.CalculateReturnItemAdjustmentCreditCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CalculateReturnItemAdjustmentCreditCmdImpl() CalculateReturnItemAdjustmentCreditCmdImpl constructor. |
Method Summary | |
protected java.math.BigDecimal | calcSpecificAdjustmentCredit(OrderItemAccessBean anOrderItemAB, OrderItemAdjustmentAccessBean anOrderItemAdjAB) Calculate the adjustment credit for a specific order item adjustment. |
java.math.BigDecimal | getAdjustmentCredit() Get the total calculated adjustment credit for the returned/refunded item. |
protected java.math.BigDecimal | getLimitAmount(OrderItemAdjustmentAccessBean anOrderItemAdjAB) Return an amount that the adjustment credit will be limited to. |
protected OrderItemAccessBean | getOrderItemAB() Get the access bean of the order item being returned. |
protected RMAItemAccessBean | getRMAItemAB() Get the RMA item access bean for which the adjustment credit is being calculated. |
void | performExecute() Execute the command. |
protected void | removeOldAdjustmentCredits() Remove existing adjustment credits for the rma item being processed. |
void | reset() Reset the command. |
protected void | setAdjustmentCredit(java.math.BigDecimal newAdjustmentCredit) Set the total adjustment credit for the rma item. |
void | setOrderItemAB(OrderItemAccessBean anOrderItemAB) Set the orderItem being returned/refunded. |
void | setQuantity(java.lang.Double aQuantity) Set the quantity to be credited. |
void | setRMAItemAB(RMAItemAccessBean anRMAItemAB) Set the RMA Item access bean which will have its adjustment credit updated. |
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, 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 CalculateReturnItemAdjustmentCreditCmdImpl()
Method Detail |
protected java.math.BigDecimal calcSpecificAdjustmentCredit(OrderItemAccessBean anOrderItemAB, OrderItemAdjustmentAccessBean anOrderItemAdjAB) throws ECException
public java.math.BigDecimal getAdjustmentCredit()
protected java.math.BigDecimal getLimitAmount(OrderItemAdjustmentAccessBean anOrderItemAdjAB) throws ECException
protected OrderItemAccessBean getOrderItemAB()
protected RMAItemAccessBean getRMAItemAB()
public void performExecute() throws ECException
protected void removeOldAdjustmentCredits() throws ECSystemException
public void reset()
protected void setAdjustmentCredit(java.math.BigDecimal newAdjustmentCredit)
public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
public void setQuantity(java.lang.Double aQuantity)
public void setRMAItemAB(RMAItemAccessBean anRMAItemAB)
public void validateParameters() throws ECException
Parameters
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.