Markup::copyFromOrderLineWithMultipleDeliveries Method [AX 2012]
Copies MarkupTrans table records that are associated with an order line with multiple deliveries to the specified delivery line.
Syntax
server public static int copyFromOrderLineWithMultipleDeliveries(
SalesPurchLine orderLine,
SalesPurchLine deliveryLine,
DlvScheduleMarkupConversionMode _dlvScheduleMarkupConversionMode,
Map _fixedMarkupRemainMap)
Run On
Server
Parameters
- orderLine
Type: SalesPurchLine Map
The order line record based on which to create the MarkupTrans records.
- deliveryLine
Type: SalesPurchLine Map
The delivery line record for which to create the MarkupTrans records.
- _dlvScheduleMarkupConversionMode
Type: DlvScheduleMarkupConversionMode Enumeration
The delivery schedule markup conversion mode. In the copy mode, all the MarkupTrans records are copied without value changes.
In the split mode, all the MarkupTrans records of category fixed have their value set proportionately to the quantity.
- _fixedMarkupRemainMap
Type: Map Class
A map to use to store remaining quantities and fixed amounts per RecId value of the MarkupTrans record that is associated with the order line.
Callers should pass this map to successive calls for each delivery line. It should be empty when it is called for the first delivery line.
Return Value
Type: int
The number of MarkupTrans table records that were copied.
Remarks
Markup records should be copied as part of the order line to delivery schedule conversion process.
Order line with multiple deliveries should not have any Markup records assigned to it after the conversion is completed.