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 descriptionType / EDT / enumMandatoryReferencesIn public entities
EarningCodePoints to the earning code the rule applies to.Int64
PayrollEarningCodeRecId
YesPayrollEarningCode.RecIdNone
LegalEntityPoints to the legal entity (company) the rule applies to.Int64
LegalEntityRecId
YesCompanyInfo.RecIdNone
DepartmentPoints to the department (operating unit) the rule applies to.Int64
OMDepartmentRecId
NoOMOperatingUnit.RecIdNone
JobPoints to the job the rule applies to.Int64
HcmJobRecId
NoHcmJob.RecIdNone
WorkerPoints to the worker the rule applies to.Int64
HcmWorkerRecId
NoHcmWorker.RecIdNone
LedgerDimensionPoints to the ledger account and dimension combination set as the main account for the rule.Int64
LedgerDimensionDefaultAccount
YesDimensionAttributeValueCombination.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

Indexes (3)

Relations (6)

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

  • CompanyInfo → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many PayrollEarningCodeAccountingRule records → exactly one CompanyInfo record

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many PayrollEarningCodeAccountingRule records → exactly one DimensionAttributeValueCombination record

  • HCMJob → HcmJob

    Join on Job = HcmJob.RecId

    Many PayrollEarningCodeAccountingRule records → zero or one HcmJob record

  • HCMWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many PayrollEarningCodeAccountingRule records → zero or one HcmWorker record

  • OMOperatingUnit → OMOperatingUnit

    Join on Department = OMOperatingUnit.RecId, OMOperatingUnit.OMOperatingUnitType = OMOperatingUnitType::OMDepartment

    Many PayrollEarningCodeAccountingRule records → zero or one OMOperatingUnit record

  • PayrollEarningCode → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many 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.

Email sales@drdynamics.co.uk