com.ibm.commerce.returns.commands

Class AutoApproveReturnItemStandardChecksCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AutoApproveReturnItemStandardChecksCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AutoApproveReturnItemStandardChecksCmdImpl
    extends TaskCommandImpl
    implements AutoApproveReturnItemStandardChecksCmd
    Command used for the base evaluation of whether a return merchandise authorization (RMA) item may be approved. Checks that item creditable (STOREITEM.CREDITABLE). Checks that all components of RMA item are expected for receipt (RMAITEMCMP.SHOULDRECEIVE = Y). Checks that based on an item setting (STOREITEM.RETURNNOTDESIRED) the merchant do not to want physical merchandise to be returned (RMAITEMCMP.SHOULDRECEIVE = S). If this RMA item was approved, would the total quantity approved still be within the quantity shipped for the order item (ORDSHIPHST.QYTSHIPPED). Each component is evaluated separately. 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.
    See Also:
    Serialized Form