Table
PayrollEarningCodeAccountingRule
Earning code accounting rule
Stores an accounting rule for an earning code. A rule is identified by earning code, legal entity, department, job and worker. It holds the main account to use for that combination.
- Table name
PayrollEarningCodeAccountingRule- Module
Payroll- Table group
Reference- Table type
Regular- Data per company
No- Configuration key
HRMAdministrationPayrollInfo- Primary index
None- Replacement key
EarningCodeAccountingRule_AK1- Key fields
EarningCode, LegalEntity, Department, Job, Worker- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
EarningCodePoints to the earning code the rule applies to. | Int64PayrollEarningCodeRecId | Yes | PayrollEarningCode.RecId | None |
LegalEntityPoints to the legal entity (company) the rule applies to. | Int64LegalEntityRecId | Yes | CompanyInfo.RecId | None |
DepartmentPoints to the department (operating unit) the rule applies to. | Int64OMDepartmentRecId | No | OMOperatingUnit.RecId | None |
JobPoints to the job the rule applies to. | Int64HcmJobRecId | No | HcmJob.RecId | None |
WorkerPoints to the worker the rule applies to. | Int64HcmWorkerRecId | No | HcmWorker.RecId | None |
LedgerDimensionPoints to the ledger account and dimension combination set as the main account for the rule. | Int64LedgerDimensionDefaultAccount | Yes | DimensionAttributeValueCombination.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 |
Indexes (3)
EarningCodeAccountingRule_AK1Replacement keyEarningCode,LegalEntity,Department,Job,WorkerUnique, alternate key.
DimensionAttributeValueCombinationIdxNot unique.
OMOperatingUnitIdxNot unique.
Relations (6)
Each relation joins PayrollEarningCodeAccountingRule to another table on the fields shown.
CompanyInfo→CompanyInfoJoin on
LegalEntity = CompanyInfo.RecIdMany PayrollEarningCodeAccountingRule records → exactly one CompanyInfo record
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany PayrollEarningCodeAccountingRule records → exactly one DimensionAttributeValueCombination record
HCMJob→HcmJobJoin on
Job = HcmJob.RecIdMany PayrollEarningCodeAccountingRule records → zero or one HcmJob record
HCMWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany PayrollEarningCodeAccountingRule records → zero or one HcmWorker record
OMOperatingUnit→OMOperatingUnitJoin on
Department = OMOperatingUnit.RecId,OMOperatingUnit.OMOperatingUnitType = OMOperatingUnitType::OMDepartmentMany PayrollEarningCodeAccountingRule records → zero or one OMOperatingUnit record
PayrollEarningCode→PayrollEarningCodeJoin on
EarningCode = PayrollEarningCode.RecIdMany PayrollEarningCodeAccountingRule records → exactly one PayrollEarningCode record
Get this data out
No public entity reads from PayrollEarningCodeAccountingRule. Its data is only reachable through the application, a custom entity or a database export.
Need help with PayrollEarningCodeAccountingRule in a report, an integration or a migration? Talk to Dr Dynamics.