Table

PayrollEarningStatement

Earnings statements

Holds earnings statement headers, identified by the earnings statement number. Each statement links to a worker, a pay period and a source document header. It also has a note and a setting for creating salary earnings.

Table name
PayrollEarningStatement
Module
Payroll
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
PayrollAdministration
Primary index
None
Replacement key
DocumentNumberIdx
Key fields
DocumentNumber
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DocumentNumberUnique number of the earnings statement.String (20)
PayrollEarningStatementId
YesPayrollEarningStatementHeaderEntityPayrollEarningStatementLineEntityPayrollEarningStatementLineEntityand 1 more
AutoGeneratedSalarySays whether salary earnings are created for the statement (inactive or active).Enum
PayrollAutoGenerateSalary (enum)
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoPayrollEarningStatementHeaderEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NoteFree-text note on the statement.String (-1)
Notes
NoPayrollEarningStatementHeaderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PayPeriodPoints to the pay period record.Int64
PayrollPayPeriodRecId
YesPayrollPayPeriod.RecIdPayrollEarningStatementHeaderEntity
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
SourceDocumentHeaderPoints to the source document header record.Int64
SourceDocumentHeaderRecId
NoSourceDocumentHeader.RecIdNone
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
WorkerPoints to the worker record.Int64
HcmWorkerRecId
YesHcmWorker.RecIdPayrollEarningStatementHeaderEntity

Indexes (4)

Relations (3)

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

  • PayPeriod → PayrollPayPeriod

    Join on PayPeriod = PayrollPayPeriod.RecId

    Many PayrollEarningStatement records → exactly one PayrollPayPeriod record

  • SourceDocumentHeader → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Many PayrollEarningStatement records → zero or one SourceDocumentHeader record

  • Worker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many PayrollEarningStatement records → exactly one HcmWorker record

Get this data out

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

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

Email sales@drdynamics.co.uk