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 descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FromAccountRecIdPoints to the main account that has the related account.Int64
RefRecId
YesMainAccount.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PreferredShows whether this related account is the preferred one (yes or no).Enum
NoYes (enum)
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
ToAccountRecIdPoints to the related main account.Int64
RefRecId
YesMainAccount.RecIdNone
ValueAllocation percentage for the related account.Real
LedgerAllocatePct
NoNone

Indexes (1)

Relations (2)

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

  • FromAccount → MainAccount

    Join on FromAccountRecId = MainAccount.RecId

    Many LedgerRelatedAccounts_ES records → exactly one MainAccount record

  • ToAccount → MainAccount

    Join on ToAccountRecId = MainAccount.RecId

    Many 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.

Email sales@drdynamics.co.uk