Table

CAMDataLedgerDocumentAccountingRule

Ledger document accounting rules

Holds rules that decide, for a party hierarchy node, whether a ledger document is accounted in the ledger. Each rule belongs to a policy and has a valid-from value. It also links to a cost accounting rule.

Table name
CAMDataLedgerDocumentAccountingRule
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
No
Configuration key
CAMCostAccounting
Primary index
None
Replacement key
LedgerDocumentAccountingPolicyIdx
Key fields
LedgerDocumentAccountingPolicy, PartyDimensionHierarchyNode, ValidFrom, AccountDocumentInLedger
Model
CostAccounting

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
LedgerDocumentAccountingPolicyPoints to the ledger document accounting policy that the rule belongs to.Int64
CAMLedgerDocumentAccountingPolicyRecId
YesCAMDataLedgerDocumentAccountingPolicy.RecIdNone
PartyDimensionHierarchyNodePoints to the node in the party dimension hierarchy that the rule applies to.Int64
CAMPartyDimensionHierarchyNodeRecId
YesCAMDataDimensionHierarchyNode.RecIdNone
ValidFromDate and time when the rule starts to be valid.UtcDateTime
ValidFromDateTime
NoNone
AccountDocumentInLedgerYes or no flag that states whether the document is accounted in the ledger.Enum
NoYes (enum)
NoNone
CostAccountingRulePoints to the cost accounting rule linked to this record.Int64
CAMCostAccountingRuleRecId
NoCAMDataCostAccountingRule.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
ValidToDate and time when the rule stops being valid.UtcDateTime
ValidToDateTime
NoNone

Indexes (2)

Relations (3)

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

  • CAMDataLedgerDocumentAccountingPolicy → CAMDataLedgerDocumentAccountingPolicy

    Join on LedgerDocumentAccountingPolicy = CAMDataLedgerDocumentAccountingPolicy.RecId

    Many CAMDataLedgerDocumentAccountingRule records → exactly one CAMDataLedgerDocumentAccountingPolicy record

  • CostAccountingRule → CAMDataCostAccountingRule

    Join on CostAccountingRule = CAMDataCostAccountingRule.RecId

    Zero or one CAMDataLedgerDocumentAccountingRule record → exactly one CAMDataCostAccountingRule record

  • PartyDimensionHierarchyNode → CAMDataDimensionHierarchyNode

    Join on PartyDimensionHierarchyNode = CAMDataDimensionHierarchyNode.RecId

    Many CAMDataLedgerDocumentAccountingRule records → zero or one CAMDataDimensionHierarchyNode record

Get this data out

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

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

Email sales@drdynamics.co.uk