public class AutoApproveReturnItemStandardChecksCmdImpl extends TaskCommandImpl implements AutoApproveReturnItemStandardChecksCmd
Constructor and Description |
---|
AutoApproveReturnItemStandardChecksCmdImpl()
AutoApproveReturnItemStandardChecksCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.lang.Long | getPreApprovedQuantity(OrderItemAccessBean orderItemAB, RMAItemComponentAccessBean abRMAItemCmp, OrderManagementJDBCHelperAccessBean rmaHelperAB)
This method gets the pre-approved quantity in the RMA item.
|
RMAItemAccessBean | getRMAItemAB()
This method gets the RMA item access bean.
|
java.util.List | getRMAItemDenyReasonList()
Get the list of deny reasons for this RMA item
|
protected java.lang.Long | getShippedQuantity(OrderItemAccessBean orderItemAB, RMAItemComponentAccessBean abRMAItemCmp, OrderManagementJDBCHelperAccessBean rmaHelperAB)
This method gets the shipped quantity of order item.
|
protected boolean | isItemCreditable(java.lang.Long itemSpecID)
This method checks if the item 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.
|
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.
|
void | performExecute()
Execute the command.
|
void | reset()
Resets this command.
|
void | setRMAItemAB(RMAItemAccessBean aRMAItemAB)
This method sets the RMA item being accessed.
|
void | setRMAItemDenyReasonList(java.util.List aRMAItemDenyReasonList)
This method sets the list of deny reason id for this RMA item
|
void | validateParameters()
Validates parameters of this command.
|
public AutoApproveReturnItemStandardChecksCmdImpl()
protected boolean areAllComponentsBeingReturned(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, java.lang.Long itemSpecID) throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException
protected void doStandardChecks() throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
public java.util.List getRMAItemDenyReasonList()
protected boolean isItemCreditable(java.lang.Long itemSpecID) throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
protected boolean isThisWithinAmountPaid(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, OrderManagementJDBCHelperAccessBean rmaHelperAB) throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
protected boolean isThisWithinQuantityShipped(java.util.Vector vRMAItemCmps, OrderItemAccessBean orderItemAccessBean, OrderManagementJDBCHelperAccessBean rmaHelperAB) throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
protected java.lang.Long getShippedQuantity(OrderItemAccessBean orderItemAB, RMAItemComponentAccessBean abRMAItemCmp, OrderManagementJDBCHelperAccessBean rmaHelperAB) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.sql.SQLException
protected java.lang.Long getPreApprovedQuantity(OrderItemAccessBean orderItemAB, RMAItemComponentAccessBean abRMAItemCmp, OrderManagementJDBCHelperAccessBean rmaHelperAB) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.sql.SQLException
public void performExecute() throws ECException
public void reset()
public void setRMAItemAB(RMAItemAccessBean aRMAItemAB)
public void setRMAItemDenyReasonList(java.util.List aRMAItemDenyReasonList)
public RMAItemAccessBean getRMAItemAB()
public void validateParameters() throws ECException