Class WarehousingOrderEntryBasedReturnableCheck
java.lang.Object
de.hybris.platform.warehousing.returns.strategy.impl.WarehousingOrderEntryBasedReturnableCheck
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<ReturnStatus>protected ReturnServicebooleanperform(OrderModel order, AbstractOrderEntryModel orderEntry, long returnQuantity) Determines if the product is 'returnable'voidsetInvalidReturnStatusForIncompleteReturns(Set<ReturnStatus> invalidReturnStatusForIncompleteReturns) voidsetModelService(ModelService modelService) voidsetReturnService(ReturnService returnService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.returns.strategy.ReturnableCheck
maxReturnQuantity
-
Constructor Details
-
WarehousingOrderEntryBasedReturnableCheck
public WarehousingOrderEntryBasedReturnableCheck()
-
-
Method Details
-
perform
Description copied from interface:ReturnableCheckDetermines if the product is 'returnable'- Specified by:
performin interfaceReturnableCheck- Parameters:
order- the related original orderorderEntry- the ordered product which will be returnedreturnQuantity- the quantity of entries to be returned- Returns:
- true if product is 'returnable'
-
getReturnService
-
setReturnService
-
getInvalidReturnStatusForIncompleteReturns
-
setInvalidReturnStatusForIncompleteReturns
public void setInvalidReturnStatusForIncompleteReturns(Set<ReturnStatus> invalidReturnStatusForIncompleteReturns) -
getModelService
-
setModelService
-