LedgerVoucherTransObject::newTransactionAmountDefault Method [AX 2012]

Initializes a new instance of the LedgerVoucherTransObject class by using a transaction currency amount and a ledger posting reference for defaulting.

Syntax

client server public static LedgerVoucherTransObject newTransactionAmountDefault(
    LedgerVoucherObject _defaultLedgerPostingReference, 
    LedgerPostingType _postingType, 
    LedgerDimensionAccount _ledgerDimensionId, 
    CurrencyCode _transactionCurrencyCode, 
    Money _transactionCurrencyAmount, 
    CurrencyExchangeHelper _exchangeRateHelper)

Run On

Called

Parameters

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 and exchange rate date.

See Also

Reference

LedgerVoucherTransObject Class