SalesLine::lastDeliveryScheduleLineNum Method [AX 2012]

Retrieves the last line number that is used by the delivery lines linked to the specified order line.

client server public static LineNum lastDeliveryScheduleLineNum(TradeInventTransId _orderLine)

Run On



Type: TradeInventTransId Extended Data Type
The order line of the delivery for which to schedule to find the maximum line number.

Return Value

Type: LineNum Extended Data Type
The maximum line number of the delivery lines that are linked to the specified order line or zero when no such line exists.

This method is used to guarantee that the delivery lines will not be interlaced with the order lines.