Share via


LedgerVoucherTransObject::newTransactionAccountingAmountsDefault Method [AX 2012]

Initializes a new instance of the LedgerVoucherTransObject class that has a transaction currency amount, an accounting currency amount, and a ledger posting reference for defaulting.

Syntax

client server public static LedgerVoucherTransObject newTransactionAccountingAmountsDefault(
    LedgerVoucherObject _defaultLedgerPostingReference, 
    LedgerPostingType _postingType, 
    RecId _ledgerDimensionId, 
    CurrencyCode _transactionCurrencyCode, 
    Money _transactionCurrencyAmount, 
    MoneyMST _accountingCurrencyAmount, 
    CurrencyExchangeHelper _currencyExchangeHelper)

Run On

Called

Parameters

  • _ledgerDimensionId
    Type: RecId Extended Data Type
    The dimension attribute value combination of the general journal entry.
  • _currencyExchangeHelper
    Type: CurrencyExchangeHelper Class
    An CurrencyExchangeHelper object that is initialized for the current LedgerVoucherTransObject object.

Return Value

Type: LedgerVoucherTransObject Class
A new instance of the LedgerVoucherTransObject class.

Remarks

The default ledger posting reference is used to set the transaction type.

See Also

Reference

LedgerVoucherTransObject Class