Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- _defaultLedgerPostingReference
Type: LedgerVoucherObject Class
The ledger posting reference to use for defaulting.
- _postingType
Type: LedgerPostingType Enumeration
The posting type of the general journal entry.
- _ledgerDimensionId
Type: RecId Extended Data Type
The dimension attribute value combination of the general journal entry.
- _transactionCurrencyCode
Type: CurrencyCode Extended Data Type
The currency code of the general journal entry.
- _transactionCurrencyAmount
Type: Money Extended Data Type
The amount in the transaction currency.
- _accountingCurrencyAmount
Type: MoneyMST Extended Data Type
The amount in the accounting currency.
- _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.