Markup::copy Method [AX 2012]
Copies the MarkupTrans table records that are associated with one table record to another table.
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 copy(
NoYes _reverseSign,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
CurrencyCode _currencyCode,
SourceDocumentLineAccountingStatus _targetAccountingStatus,
boolean _initCalculatedAmount])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static int copy(
NoYes _reverseSign,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
CurrencyCode _currencyCode,
SourceDocumentLineAccountingStatus _targetAccountingStatus,
boolean _initCalculatedAmount])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static int copy(
NoYes _reverseSign,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
CurrencyCode _currencyCode,
SourceDocumentLineAccountingStatus _targetAccountingStatus])
Microsoft Dynamics AX 2012 (FPK)
server public static int copy(
NoYes _reverseSign,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
CurrencyCode _currencyCode,
SourceDocumentLineAccountingStatus _targetAccountingStatus])
Microsoft Dynamics AX 2012 (SYS)
server public static int copy(
NoYes _reverseSign,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
CurrencyCode _currencyCode,
SourceDocumentLineAccountingStatus _targetAccountingStatus])
Run On
Server
Parameters
- _reverseSign
Type: NoYes Enumeration
A NoYes enumeration value that determines whether the sign of the value will be reversed on the copied records.
- _bufferFrom
Type: Common Table
The source table record.
- _bufferTo
Type: Common Table
The destination table record.
- _copyPostingFields
Type: boolean
A Boolean value that indicates whether the posting fields will be copied; optional.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency code to use during the conversion to the destination table record; optional.
- _targetAccountingStatus
Type: SourceDocumentLineAccountingStatus Enumeration
The desired SourceDocumentLineAccountingStatus value; optional.
- _initCalculatedAmount
Type: boolean
Return Value
Type: int
The number of MarkupTrans table records that are copied.
Remarks
If no currencyCode value is provided, the currency code of the destination table record will be used for the conversion.