java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.returns.commands.AutoApproveReturnItemStandardChecksCmdImpl
Command used for the base evaluation of whether a return mechandise authorization (RMA) item may be approved programatically. Checks that item creditable (STOREITEM.CREDITABLE). Checks that all components of RMA item are expected for receipt (RMAITEMCMP.SHOULDRECEIVE = Y) or that based on an item setting (STOREITEM.RETURNNOTDESIRED) the merchant doesn't want physical merchandise to be returned (RMAITEMCMP.SHOULDRECEIVE = S). Checks if this RMA item were approved, would the total quantity approved still be within the quantity shipped for the order item (ORDSHIPHST.QYTSHIPPED); Each component is evaluated seperately. Checks if this RMA item were approved, would amount approved for credit still be within the amount deposited against the payment; the order payment is compared to all RMA items from that same order. For each failed test a deny reason is logged against the RMA item. The deny reason codes are ITMNOTCRED, PRODREQ, EXCSHIP, EXCPAY. These are translated to the corresponding store return reason id, before they are logged in RMAIDNYRSN.
Field Summary |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.AutoApproveReturnItemStandardChecksCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
AutoApproveReturnItemStandardChecksCmdImpl() AutoApproveReturnItemStandardChecksCmdImpl constructor. |
Method Summary | |
protected boolean | areAllComponentsBeingReturned(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, java.lang.Long itemSpecID) Checks if any RMA item components are marked as the customer does not intend to return the merchandise. |
protected void | doStandardChecks() Performs the non-policy driven logic of auto-approval |
java.util.List | getRMAItemDenyReasonList() Get the list of deny reasons for this RMA item |
protected boolean | isItemCreditable(java.lang.Long itemSpecID) Check if baseitem represented in RMAitem is creditable |
protected boolean | isThisWithinAmountPaid(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, OrderManagementJDBCHelperAccessBean rmaHelperAB) Checks if this RMA item were approved, would amount approved for credit still be within the amount deposited against the payment; the order payment is compared to all RMA items from that same order. |
protected boolean | isThisWithinQuantityShipped(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, OrderManagementJDBCHelperAccessBean rmaHelperAB) Checks if this RMA item were approved, would the total quantity approved still be within the quantity shipped for the order item; Each component is evaluated seperately. |
void | performExecute() Execute the command. |
void | reset() This method should be called after a command has been executed to reset its states variables. |
void | setRMAItemAB(RMAItemAccessBean RMAItemAB) Set the RMA item being accessed. |
void | setRMAItemDenyReasonList(java.util.List RMAItemDenyReasonList) Set the list of deny reason id for this RMA item |
void | validateParameters() Performs parameter checking. |
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 AutoApproveReturnItemStandardChecksCmdImpl()
Method Detail |
protected boolean areAllComponentsBeingReturned(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, java.lang.Long itemSpecID) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
protected void doStandardChecks() throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException, ECException
public java.util.List getRMAItemDenyReasonList()
protected boolean isItemCreditable(java.lang.Long itemSpecID) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException, ECException
protected boolean isThisWithinAmountPaid(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, OrderManagementJDBCHelperAccessBean rmaHelperAB) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException, java.sql.SQLException
protected boolean isThisWithinQuantityShipped(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, OrderManagementJDBCHelperAccessBean rmaHelperAB) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException, java.sql.SQLException
public void performExecute() throws ECException
public void reset()
public void setRMAItemAB(RMAItemAccessBean RMAItemAB)
public void setRMAItemDenyReasonList(java.util.List RMAItemDenyReasonList)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.