Table
PayrollTaxAccountingRule
Tax accounting rule
Stores the main account to use for a payroll tax code in a legal entity. The key is the legal entity together with the tax code.
- Table name
PayrollTaxAccountingRule- Module
Payroll- Table group
Reference- Table type
Regular- Data per company
No- Configuration key
PayrollAdministration- Primary index
None- Replacement key
TaxAccountingRule_AK1- Key fields
LegalEntity, PayrollTaxCode- Model
Foundation
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
LegalEntityPoints to the legal entity (company) the rule belongs to. | Int64CompanyInfoRecId | Yes | CompanyInfo.RecId | None |
PayrollTaxCodePoints to the payroll tax code the rule applies to. | Int64PayrollTaxCodeRecId | Yes | PayrollTaxCode.RecId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
LedgerDimensionPoints to the ledger account and dimension combination used as the main account. | Int64LedgerDimensionDefaultAccount | Yes | DimensionAttributeValueCombination.RecId | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | 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 |
Indexes (2)
TaxAccountingRule_AK1Replacement keyUnique, alternate key.
DimensionAttributeValueCombinationIdxNot unique.
Relations (3)
Each relation joins PayrollTaxAccountingRule to another table on the fields shown.
CompanyInfo_FK→CompanyInfoJoin on
LegalEntity = CompanyInfo.RecIdMany PayrollTaxAccountingRule records → exactly one CompanyInfo record
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany PayrollTaxAccountingRule records → exactly one DimensionAttributeValueCombination record
TaxCode_FK→PayrollTaxCodeJoin on
PayrollTaxCode = PayrollTaxCode.RecIdMany PayrollTaxAccountingRule records → exactly one PayrollTaxCode record
Get this data out
No public entity reads from PayrollTaxAccountingRule. Its data is only reachable through the application, a custom entity or a database export.
Need help with PayrollTaxAccountingRule in a report, an integration or a migration? Talk to Dr Dynamics.