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

  • _bufferTo
    Type: Common Table
    The destination table record.

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.

See Also

Reference

Markup Class