Table

LedgerAllocationRule

Ledger allocation rule

Holds ledger allocation rules, one record per rule ID. A rule sets the allocation method, the data source, an optional mathematical operation and an effective date range. It also holds offset account and dimension settings and the journal name to use. Source and destination lines are stored in separate tables.

Table name
LedgerAllocationRule
Module
General ledger
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
LedgerAllocationRules
Primary index
RuleIdx
Replacement key
None
Key fields
RuleId
Model
GeneralLedger

Fields (26)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RuleIdUnique ID of the allocation rule.String (20)
LedgerAllocationRuleID
YesLedgerAllocationRuleEntity
AllocationActiveShows whether the rule is active (yes or no).Enum
NoYes (enum)
NoLedgerAllocationRuleEntity
AllocationDescriptionShort text describing the rule.String (60)
Description
NoLedgerAllocationRuleEntity
AllocationMethodMethod of the allocation: blank, basis, fixed percentage, fixed weight or equally.Enum
LedgerAllocationMethod (enum)
NoLedgerAllocationRuleEntity
CalculationAmountAmount used together with the mathematical operation.Real
Amount
NoLedgerAllocationRuleEntity
CalculationTypeMathematical operation to apply: none, multiply or divide.Enum
LedgerAllocationMathType (enum)
NoLedgerAllocationRuleEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DataSourceWhere the amounts come from: the ledger or a fixed value.Enum
LedgerAllocationSource (enum)
NoLedgerAllocationRuleEntity
DateIntervalDate interval code linked to the rule.String
DateCode
NoLedgerPeriodCode.CodeLedgerAllocationRuleEntity
DateLastRunDate on which the rule was last run.Date
TransDate
NoLedgerAllocationRuleEntity
DestinationAccountFromSays whether the destination account comes from the source or is entered by the user.Enum
LedgerAllocationFromTo (enum)
NoLedgerAllocationRuleEntity
DestinationDimensionFromSays whether the destination dimensions come from the source or are entered by the user.Enum
LedgerAllocationFromTo (enum)
NoLedgerAllocationRuleEntity
EffectiveEndDateLast date on which the rule is valid.Date
EndDate
NoLedgerAllocationRuleEntity
EffectiveStartDateFirst date on which the rule is valid.Date
StartDate
NoLedgerAllocationRuleEntity
FixedValueFixed value (weight) used when the data source is a fixed value.Real
LedgerAllocationFixedWeight
NoLedgerAllocationRuleEntity
IntercompanyRuleShows whether the rule is an intercompany rule (yes or no).Enum
NoYes (enum)
NoLedgerAllocationRuleEntity
JournalNameName of the ledger journal linked to the rule.String
LedgerJournalNameId
NoLedgerJournalName.JournalNameLedgerAllocationRuleEntity
OffsetAccountFromSays whether the offset account comes from the source or is entered by the user.Enum
LedgerAllocationFromTo (enum)
NoLedgerAllocationRuleEntity
OffsetDefaultDimensionPoints to the set of dimension values used for the offset.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdLedgerAllocationRuleEntity
OffsetDimensionFromSays whether the offset dimensions come from the source or are entered by the user.Enum
LedgerAllocationFromTo (enum)
NoLedgerAllocationRuleEntity
OffsetLedgerDimensionPoints to the account and dimension combination used as the offset account.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdLedgerAllocationRuleEntity
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
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (4)

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

  • LedgerPeriodCode → LedgerPeriodCode

    Join on DateInterval = LedgerPeriodCode.Code

    Many LedgerAllocationRule records → zero or one LedgerPeriodCode record

  • OffsetDefaultDimension → DimensionAttributeValueSet

    Join on OffsetDefaultDimension = DimensionAttributeValueSet.RecId

    Many LedgerAllocationRule records → zero or one DimensionAttributeValueSet record

  • OffsetLedgerDimension → DimensionAttributeValueCombination

    Join on OffsetLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerAllocationRule records → zero or one DimensionAttributeValueCombination record

  • LedgerJournalName → LedgerJournalName

    Join on JournalName = LedgerJournalName.JournalName

    Many LedgerAllocationRule records → zero or one LedgerJournalName record

Get this data out

Tables are not exposed directly. These public entities read from LedgerAllocationRule; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk