Class DefaultReturnOrderSplittingStrategy
- java.lang.Object
-
- com.sap.hybris.sapomsreturnprocess.returns.strategy.impl.DefaultReturnOrderSplittingStrategy
-
- All Implemented Interfaces:
ReturnOrderStartegy
public class DefaultReturnOrderSplittingStrategy extends java.lang.Object implements ReturnOrderStartegy
-
-
Constructor Summary
Constructors Constructor Description DefaultReturnOrderSplittingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setRefundAmountForEachConsignmentEntry(java.util.Map.Entry<ReturnEntryModel,java.util.List<ConsignmentEntryModel>> entry, java.util.List<ConsignmentEntryModel> consignmentList)
This method calculates the refund amount to be sent to each backend.void
splitOrder(java.util.Map<ReturnEntryModel,java.util.List<ConsignmentEntryModel>> returnOrderEntryConsignmentListMap)
This method will make a map of order entry and list of consignment as per the splitting strategy
-
-
-
Method Detail
-
splitOrder
public void splitOrder(java.util.Map<ReturnEntryModel,java.util.List<ConsignmentEntryModel>> returnOrderEntryConsignmentListMap)
Description copied from interface:ReturnOrderStartegy
This method will make a map of order entry and list of consignment as per the splitting strategy- Specified by:
splitOrder
in interfaceReturnOrderStartegy
-
setRefundAmountForEachConsignmentEntry
protected void setRefundAmountForEachConsignmentEntry(java.util.Map.Entry<ReturnEntryModel,java.util.List<ConsignmentEntryModel>> entry, java.util.List<ConsignmentEntryModel> consignmentList)
This method calculates the refund amount to be sent to each backend. This is calculated by multiplying the total refund amount of each refund entry with the ratio of the return quantity for each consignment entry to that of total quantity to be returned in the return request.
-
-