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.
Retrieves the default account of the ledger dimension for the passed in parameters.
Syntax
client server public static LedgerDimensionDefaultAccount ledgerDimension(
RecId _ledger,
CurrencyCode _currencyCode,
CurrencyGainLossAccountType _accountType)
Run On
Called
Parameters
- _ledger
Type: RecId Extended Data Type
The ledger of the CurrencyLedgerGainLossAccount record.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency code of the CurrencyLedgerGainLossAccount record.
- _accountType
Type: CurrencyGainLossAccountType Enumeration
The currency gain loss account type of the CurrencyLedgerGainLossAccount record.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger dimension default account for the specified values.
Remarks
The method will first check if a ledger dimension default account exists in the CurrencyLedgerGainLossAccount table. If the ledger dimension default account is not found in the CurrencyLedgerGainLossAccount table, the method will check the LedgerGainLossAccount table.