Table

LedgerGainLossAccount

Ledger revaluation account

Holds the revaluation accounts of a ledger. It is keyed by ledger and posting type, such as realized gain, unrealized loss or conversion gain. Each row points to a main account as a dimension code combination.

Table name
LedgerGainLossAccount
Module
General ledger
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
LedgerGainLossAccountIdx
Key fields
Ledger, AccountType
Model
Ledger

Fields (7)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
LedgerPoints to the ledger.Int64
LedgerRecId
NoLedger.RecIdNone
AccountTypeType of gain or loss that the account is for.Enum
CurrencyGainLossAccountType (enum)
NoNone
LedgerDimensionMain account for this gain or loss type.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

Each relation joins LedgerGainLossAccount to another table on the fields shown.

  • Ledger → Ledger

    Join on Ledger = Ledger.RecId

    Many LedgerGainLossAccount records → exactly one Ledger record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerGainLossAccount records → zero or one DimensionAttributeValueCombination record

Get this data out

No public entity reads from LedgerGainLossAccount. Its data is only reachable through the application, a custom entity or a database export.

Need help with LedgerGainLossAccount in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk