LedgerVoucherTransObject::newBasicDefault Method [AX 2012]

Initializes a new instance of the LedgerVoucherTransObject class that uses a ledger posting reference for defaulting.

Syntax

client server public static LedgerVoucherTransObject newBasicDefault(
    LedgerVoucherObject _defaultLedgerPostingReference, 
    LedgerPostingType _postingType, 
    LedgerDimensionAccount _ledgerDimensionId, 
    CurrencyCode _transactionCurrencyCode, 
    Money _transactionCurrencyAmount, 
    MoneyMST _accountingCurrencyAmount, 
    MoneyMST _reportingCurrencyAmount)

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