Markup::copyFromPurchOrder Method [AX 2012]

Copies MarkupTrans table records that are associated with a purchase order table record, either PurchTable or PurchLine, to another table record.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          server public static int copyFromPurchOrder(
            Common _bufferFrom, 
            Common _bufferTo, 
            Num _interCompanyInvoiceNum, 
           [CurrencyCode _currencyCode, 
            SourceDocumentLineAccountingStatus _targetAccountingStatus, 
            PurchTable _purchTable, 
            boolean _interCompanyInvoiceNumPassed])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static int copyFromPurchOrder(
            Common _bufferFrom, 
            Common _bufferTo, 
            Num _interCompanyInvoiceNum, 
           [CurrencyCode _currencyCode, 
            SourceDocumentLineAccountingStatus _targetAccountingStatus])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static int copyFromPurchOrder(
            Common _bufferFrom, 
            Common _bufferTo, 
            Num _interCompanyInvoiceNum, 
           [CurrencyCode _currencyCode, 
            SourceDocumentLineAccountingStatus _targetAccountingStatus])

  Microsoft Dynamics AX 2012 (FPK)
          server public static int copyFromPurchOrder(
            Common _bufferFrom, 
            Common _bufferTo, 
            Num _interCompanyInvoiceNum, 
           [CurrencyCode _currencyCode, 
            SourceDocumentLineAccountingStatus _targetAccountingStatus])

  Microsoft Dynamics AX 2012 (SYS)
          server public static int copyFromPurchOrder(
            Common _bufferFrom, 
            Common _bufferTo, 
            Num _interCompanyInvoiceNum, 
           [CurrencyCode _currencyCode, 
            SourceDocumentLineAccountingStatus _targetAccountingStatus])

Run On

Server

Parameters

  • _bufferTo
    Type: Common Table
    The destination table record.
  • _interCompanyInvoiceNumPassed
    Type: boolean

Return Value

Type: int
The number of MarkupTrans table records copied.

Remarks

If no currency code is provided, the currency code of the destination table record will be used for conversion.

See Also

Reference

Markup Class