Table
LedgerRelatedAccounts_ES
Related accounts
Links a main account to related main accounts, each with an allocation percentage and a preferred flag. Used for Spain. Both account fields point to the main account table.
- Table name
LedgerRelatedAccounts_ES- Module
General ledger- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
RecId- Replacement key
None- Key fields
None- Model
Ledger
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromAccountRecIdPoints to the main account that has the related account. | Int64RefRecId | Yes | MainAccount.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PreferredShows whether this related account is the preferred one (yes or no). | EnumNoYes (enum) | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToAccountRecIdPoints to the related main account. | Int64RefRecId | Yes | MainAccount.RecId | None |
ValueAllocation percentage for the related account. | RealLedgerAllocatePct | No | None |
Indexes (1)
TypeACIdxFromAccountRecId,ToAccountRecIdUnique.
Relations (2)
Each relation joins LedgerRelatedAccounts_ES to another table on the fields shown.
FromAccount→MainAccountJoin on
FromAccountRecId = MainAccount.RecIdMany LedgerRelatedAccounts_ES records → exactly one MainAccount record
ToAccount→MainAccountJoin on
ToAccountRecId = MainAccount.RecIdMany LedgerRelatedAccounts_ES records → exactly one MainAccount record
Get this data out
No public entity reads from LedgerRelatedAccounts_ES. Its data is only reachable through the application, a custom entity or a database export.
Need help with LedgerRelatedAccounts_ES in a report, an integration or a migration? Talk to Dr Dynamics.