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
- _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.
- _targetAccountingStatus
Type: SourceDocumentLineAccountingStatus Enumeration
- _purchTable
Type: PurchTable Table
- _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.