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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DocumentNumberUnique number of the earnings statement. | String (20)PayrollEarningStatementId | Yes | PayrollEarningStatementHeaderEntityPayrollEarningStatementLineEntityPayrollEarningStatementLineEntityand 1 more | |
AutoGeneratedSalarySays whether salary earnings are created for the statement (inactive or active). | EnumPayrollAutoGenerateSalary (enum) | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | PayrollEarningStatementHeaderEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NoteFree-text note on the statement. | String (-1)Notes | No | PayrollEarningStatementHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PayPeriodPoints to the pay period record. | Int64PayrollPayPeriodRecId | Yes | PayrollPayPeriod.RecId | PayrollEarningStatementHeaderEntity |
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 | |
SourceDocumentHeaderPoints to the source document header record. | Int64SourceDocumentHeaderRecId | No | SourceDocumentHeader.RecId | None |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WorkerPoints to the worker record. | Int64HcmWorkerRecId | Yes | HcmWorker.RecId | PayrollEarningStatementHeaderEntity |
Indexes (4)
WorkerPayPeriodUnique, alternate key.
SourceDocumentHeaderIdxSourceDocumentHeader,Partition,dataAreaIdNot unique.
DocumentNumberIdxReplacement keyUnique, alternate key.
WorkerIdxNot unique.
Relations (3)
Each relation joins PayrollEarningStatement to another table on the fields shown.
PayPeriod→PayrollPayPeriodJoin on
PayPeriod = PayrollPayPeriod.RecIdMany PayrollEarningStatement records → exactly one PayrollPayPeriod record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdMany PayrollEarningStatement records → zero or one SourceDocumentHeader record
Worker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany 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.
PayrollEarningStatementHeaderEntity· 5 fields from this tablePayrollEarningStatementLineEntity· 2 fields from this tablePayrollEarningStatementLineInquiryEntity· 1 field from this table
Need help with PayrollEarningStatement in a report, an integration or a migration? Talk to Dr Dynamics.