Table

PayrollPayStatementEarningLine

Pay statement earning lines

Holds earning-specific details for a pay statement line. It records the earning code, date, rate and quantity. It also links to the worker's tax region and to benefits for compensation and liability insurance.

Table name
PayrollPayStatementEarningLine
Module
Payroll
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
PayrollAdministration
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation
Extends
PayrollPayStatementLine

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoPayrollPayStatementEarningLineEntity
EarningCodeEarning code applied to the line.Int64
PayrollEarningCodeRecId
YesPayrollEarningCode.RecIdPayrollPayStatementEarningLineEntity
EarningDateDate of the earnings.Date
PayrollPayStatementEarningDate
NoPayrollPayStatementEarningLineEntity
EarningRateRate applied to the earnings.Real
PayrollEarningRate
YesPayrollPayStatementEarningLineEntityPayrollPayStatementEarningLineInquiryEntity
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuantityQuantity of earnings, such as hours.Real
PayrollEarningQuantity
YesPayrollPayStatementEarningLineEntityPayrollPayStatementEarningLineInquiryEntity
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
WorkerCompensationBenefitBenefit used as the workers' compensation code.Int64
HcmBenefitRecId
NoHcmBenefit.RecIdPayrollPayStatementEarningLineEntity
WorkerGeneralLiabilityInsuranceBenefitBenefit used for general liability insurance.Int64
HcmBenefitRecId
NoHcmBenefit.RecIdPayrollPayStatementEarningLineEntity
WorkerTaxRegionWorker tax region linked to the line.Int64
PayrollWorkerTaxRegionRecId
YesPayrollWorkerTaxRegion.RecIdPayrollPayStatementEarningLineEntity

Indexes (1)

Relations (5)

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

  • EarningCode_FK → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many PayrollPayStatementEarningLine records → exactly one PayrollEarningCode record

  • PayStatementLineEarning_FK → PayrollPayStatementLine

    Join on RecId = PayrollPayStatementLine.RecId

    Zero or one PayrollPayStatementEarningLine record → exactly one PayrollPayStatementLine record

  • WorkerCompensationBenefit_FK → HcmBenefit

    Join on WorkerCompensationBenefit = HcmBenefit.RecId

    Many PayrollPayStatementEarningLine records → exactly one HcmBenefit record

  • WorkerGeneralLiabilityInsuranceBenefitFK → HcmBenefit

    Join on WorkerGeneralLiabilityInsuranceBenefit = HcmBenefit.RecId

    Many PayrollPayStatementEarningLine records → zero or one HcmBenefit record

  • WorkerTaxRegion_FK → PayrollWorkerTaxRegion

    Join on WorkerTaxRegion = PayrollWorkerTaxRegion.RecId

    Many PayrollPayStatementEarningLine records → exactly one PayrollWorkerTaxRegion record

Get this data out

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

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

Email sales@drdynamics.co.uk