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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
LedgerDocumentAccountingPolicyPoints to the ledger document accounting policy that the rule belongs to. | Int64CAMLedgerDocumentAccountingPolicyRecId | Yes | CAMDataLedgerDocumentAccountingPolicy.RecId | None |
PartyDimensionHierarchyNodePoints to the node in the party dimension hierarchy that the rule applies to. | Int64CAMPartyDimensionHierarchyNodeRecId | Yes | CAMDataDimensionHierarchyNode.RecId | None |
ValidFromDate and time when the rule starts to be valid. | UtcDateTimeValidFromDateTime | No | None | |
AccountDocumentInLedgerYes or no flag that states whether the document is accounted in the ledger. | EnumNoYes (enum) | No | None | |
CostAccountingRulePoints to the cost accounting rule linked to this record. | Int64CAMCostAccountingRuleRecId | No | CAMDataCostAccountingRule.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
ValidToDate and time when the rule stops being valid. | UtcDateTimeValidToDateTime | No | None |
Indexes (2)
LedgerDocumentAccountingPolicyIdxReplacement keyLedgerDocumentAccountingPolicy,PartyDimensionHierarchyNode,ValidFrom,AccountDocumentInLedgerUnique, alternate key.
CostAccountingRuleIdxUnique, alternate key.
Relations (3)
Each relation joins CAMDataLedgerDocumentAccountingRule to another table on the fields shown.
CAMDataLedgerDocumentAccountingPolicy→CAMDataLedgerDocumentAccountingPolicyJoin on
LedgerDocumentAccountingPolicy = CAMDataLedgerDocumentAccountingPolicy.RecIdMany CAMDataLedgerDocumentAccountingRule records → exactly one CAMDataLedgerDocumentAccountingPolicy record
CostAccountingRule→CAMDataCostAccountingRuleJoin on
CostAccountingRule = CAMDataCostAccountingRule.RecIdZero or one CAMDataLedgerDocumentAccountingRule record → exactly one CAMDataCostAccountingRule record
PartyDimensionHierarchyNode→CAMDataDimensionHierarchyNodeJoin on
PartyDimensionHierarchyNode = CAMDataDimensionHierarchyNode.RecIdMany 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.