Markup::copySingleMarkupTrans Method [AX 2012]
Copies one MarkupTrans table record associated with one table record to another.
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 protected static MarkupTrans copySingleMarkupTrans(
NoYes _reverseSign,
MarkupTrans _oldMarkupTrans,
CurrencyCode _currencyCode,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
Common _bufferOrig,
SourceDocumentLineAccountingStatus _targetAccountingStatus,
boolean _initLineNum_RU,
boolean _initCalculatedAmount])
Microsoft Dynamics AX 2012 R2 (SYS)
server protected static MarkupTrans copySingleMarkupTrans(
NoYes _reverseSign,
MarkupTrans _oldMarkupTrans,
CurrencyCode _currencyCode,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
Common _bufferOrig,
SourceDocumentLineAccountingStatus _targetAccountingStatus,
boolean _initLineNum_RU,
boolean _initCalculatedAmount])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server protected static void copySingleMarkupTrans(
NoYes _reverseSign,
MarkupTrans _oldMarkupTrans,
CurrencyCode _currencyCode,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
Common _bufferOrig,
SourceDocumentLineAccountingStatus _targetAccountingStatus])
Microsoft Dynamics AX 2012 (FPK)
server protected static void copySingleMarkupTrans(
NoYes _reverseSign,
MarkupTrans _oldMarkupTrans,
CurrencyCode _currencyCode,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
Common _bufferOrig,
SourceDocumentLineAccountingStatus _targetAccountingStatus])
Microsoft Dynamics AX 2012 (SYS)
server protected static void copySingleMarkupTrans(
NoYes _reverseSign,
MarkupTrans _oldMarkupTrans,
CurrencyCode _currencyCode,
Common _bufferFrom,
Common _bufferTo,
[boolean _copyPostingFields,
Common _bufferOrig,
SourceDocumentLineAccountingStatus _targetAccountingStatus])
Run On
Server
Parameters
- _reverseSign
Type: NoYes Enumeration
A NoYes enumeration value that indicates whether the sign of the value will be reversed on the copied records.
- _oldMarkupTrans
Type: MarkupTrans Table
The source MarkupTrans table record.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency code to use during the conversion to the destination table record.
- _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; otherwise, they will be initialized to default values; optional.
- _bufferOrig
Type: Common Table
The original document table record that is required if the _copyPostingFields parameter is false; optional.
- _targetAccountingStatus
Type: SourceDocumentLineAccountingStatus Enumeration
The desired source document line accounting status; optional.
- _initLineNum_RU
Type: boolean
Indicates whether the new markup transaction line number is required to prevent index dub violation.
- _initCalculatedAmount
Type: boolean
Return Value
Type: MarkupTrans Table
The MarkupTrans record.
Remarks
If no currencyCode is provided, the currency code of the destination table record will be used for conversion.