Interface ReturnableCheck
- All Known Implementing Classes:
DefaultConsignmentBasedReturnableCheck,DefaultReturnEntryBasedReturnableCheck,WarehousingOrderEntryBasedReturnableCheck
public interface ReturnableCheck
This interface is used by
DefaultReturnService to provide information, if the
specified product is returnable.-
Method Summary
Modifier and TypeMethodDescriptiondefault longmaxReturnQuantity(OrderModel order, AbstractOrderEntryModel entry) Determines the max returnable quantity of the product.booleanperform(OrderModel order, AbstractOrderEntryModel entry, long returnQuantity) Determines if the product is 'returnable'
-
Method Details
-
perform
Determines if the product is 'returnable'- Parameters:
order- the related original orderentry- the ordered product which will be returnedreturnQuantity- the quantity of entries to be returned- Returns:
- true if product is 'returnable'
-
maxReturnQuantity
Determines the max returnable quantity of the product.- Parameters:
order- the related original orderentry- the ordered product which will be returned- Returns:
- max returnable quantity of the product
-