We have requirement to generate multiple delivery schedule lines from current sales order line through code. The total quantity on sales order is 10 and we need to split based on some condition. (i.e. 3 lines with 3,3,4 qty)
Tried to use the standard code and passed required parameters but it is generating only single line. Below is the standard code which has been used.
SalesTableForm_DeliverySchedule::closeOkServer(originalLine, deliveryLinesList.pack(), DlvScheduleMarkupConversionMode::Copy);
originalLine > Original sales order line
deliveryLineList.pack() > List which will contain all the 3 sales order lines with required data.
Please suggest.