Table

PayrollWorkerPositionEarningCode

Earning code related to worker and position

Connects a worker and a position to an earning code for a date range. It also holds an amount and a calculation frequency. The key is worker, earning code, position and the valid-from and valid-to dates.

Table name
PayrollWorkerPositionEarningCode
Module
Cross-module and platform
Table group
Group
Table type
Regular
Data per company
No
Configuration key
HRMAdministrationPayrollInfo
Primary index
None
Replacement key
WorkerPositionEarningCodeIdx
Key fields
Worker, EarningCode, Position, ValidFrom, ValidTo
Model
PersonnelManagement

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
WorkerPoints to the worker who receives the earning code.Int64
HcmWorkerRecId
NoHcmWorker.RecIdPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
EarningCodePoints to the earning code assigned to the worker and position.Int64
PayrollEarningCodeRecId
YesPayrollEarningCode.RecIdPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
PositionPoints to the position the earning code applies to.Int64
HcmPositionRecId
YesHcmPosition.RecIdPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
ValidFromFirst date on which this record is valid.Date
ValidFromDate
YesPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
ValidToLast date on which this record is valid.Date
ValidToDate
YesPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
CalculationFrequencyPoints to the calculation frequency used for this earning code.Int64
PayrollCalculationFrequencyRecId
NoPayrollCalculationFrequency.RecIdPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
FormulaAmount linked to the earning code for this worker and position. The currency is not stated in the metadata.low confidenceReal
AmountCur
YesPayrollWorkerPositionEarningCodeV2EntityPayrollWorkerPositionEarningCodeEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
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
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (5)

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

  • EarningCode → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many PayrollWorkerPositionEarningCode records → exactly one PayrollEarningCode record

  • HCMPosition → HcmPosition

    Join on Position = HcmPosition.RecId

    Many PayrollWorkerPositionEarningCode records → exactly one HcmPosition record

  • HcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many PayrollWorkerPositionEarningCode records → exactly one HcmWorker record

  • PayrollCalculationFrequency → PayrollCalculationFrequency

    Join on CalculationFrequency = PayrollCalculationFrequency.RecId

    Many PayrollWorkerPositionEarningCode records → zero or one PayrollCalculationFrequency record

  • PayrollEarningCodeDetail → PayrollEarningCodeDetail

    Join on EarningCode = PayrollEarningCodeDetail.EarningCode

    Many PayrollWorkerPositionEarningCode records → zero or one PayrollEarningCodeDetail record

Get this data out

Tables are not exposed directly. These public entities read from PayrollWorkerPositionEarningCode; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk