Class DefaultReturnOrderSplittingStrategy

    • Constructor Detail

      • DefaultReturnOrderSplittingStrategy

        public DefaultReturnOrderSplittingStrategy()
    • Method Detail

      • 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.