Class WarehousingOrderEntryBasedReturnableCheck

  • All Implemented Interfaces:
    ReturnableCheck

    public class WarehousingOrderEntryBasedReturnableCheck
    extends java.lang.Object
    implements ReturnableCheck
    Checks whether or not an orderEntry is returnable, by looking at how many items were shipped or already returned. Items in pending returns and items refunded should not be available to create other returns.
    • Constructor Detail

      • WarehousingOrderEntryBasedReturnableCheck

        public WarehousingOrderEntryBasedReturnableCheck()
    • Method Detail

      • perform

        public boolean perform​(OrderModel order,
                               AbstractOrderEntryModel orderEntry,
                               long returnQuantity)
        Description copied from interface: ReturnableCheck
        Determines if the product is 'returnable'
        Specified by:
        perform in interface ReturnableCheck
        Parameters:
        order - the related original order
        orderEntry - the ordered product which will be returned
        returnQuantity - the quantity of entries to be returned
        Returns:
        true if product is 'returnable'
      • setReturnService

        public void setReturnService​(ReturnService returnService)
      • getInvalidReturnStatusForIncompleteReturns

        protected java.util.Set<ReturnStatus> getInvalidReturnStatusForIncompleteReturns()
      • setInvalidReturnStatusForIncompleteReturns

        public void setInvalidReturnStatusForIncompleteReturns​(java.util.Set<ReturnStatus> invalidReturnStatusForIncompleteReturns)