Markup::recopyFromPurchOrder Method [AX 2012]
Overwrites the MarkupTrans table records associated with a purchase order record, either a PurchTable or PurchLine record, to another table record.
Syntax
server public static int recopyFromPurchOrder(
Common _bufferFrom,
Common _bufferTo,
Num _interCompanyInvoiceNum,
[CurrencyCode _currencyCode])
Run On
Server
Parameters
- _bufferFrom
Type: Common Table
The source table record.
- _bufferTo
Type: Common Table
The destination table record.
- _interCompanyInvoiceNum
Type: Num Extended Data Type
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency code to use during conversion to the destination table record; optional.
Return Value
Type: int
The number of MarkupTrans records copied.
Remarks
If no currency code is provided, the currency code of the destination table record will be used for conversion.
This method clears the MarkupTrans records that already exist. The Markup::copyFromPurchOrder method will not overwrite MarkupTrans records that already exist.