Table

PayrollPayStatement

Pay statements

Holds one pay statement for a worker, identified by the pay statement number. It records gross and net pay, payment date and status, the pay period, and links to the worker, payment journal and vendor transaction. It can point to the statement it reverses.

Table name
PayrollPayStatement
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 (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DocumentNumberUnique number of the pay statement.String (20)
PayrollPayStatementId
YesPayrollPayStatementHeaderEntityPayrollPayStatementHeaderEntityPayrollEssPayStatementEntityand 15 more
BatchNumberBatch number of the pay statement.String (20)
PayrollPayStatementBatchNumber
YesPayrollPayStatementHeaderEntity
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
CreationTypeShows whether the statement was generated or entered by a user.Enum
PayrollPayStatementCreationType (enum)
NoPayrollPayStatementHeaderEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoPayrollPayStatementHeaderEntity
DisableAccountingYes/no flag to turn off accounting for the statement.Enum
NoYesId
NoYes (enum)
NoPayrollPayStatementHeaderEntity
GrossAccountingCurrencyAmountGross pay amount.Real
PayrollStatementAccountingCurrencyAmount
NoPayrollPayStatementHeaderEntityPayrollEssPayStatementEntity
IsReversedYes/no flag showing whether the pay statement was reversed.Enum
NoYesId
NoYes (enum)
NoPayrollPayStatementHeaderEntity
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
NetAccountingCurrencyAmountNet pay amount.Real
PayrollStatementAccountingCurrencyAmount
NoPayrollPayStatementHeaderEntityPayrollEssPayStatementEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentDateDate of payment.Date
PayrollPaymDate
YesPayrollPayStatementHeaderEntityPayrollEssPayStatementEntityPayrollEssPayStatementLineEntity
PaymentJournalBatchNumPayment journal linked to this statement.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumPayrollPayStatementHeaderEntity
PaymentMethodTypeDisbursement format, such as cheque, electronic payment or cash.Enum
PayrollPaymentMethodType (enum)
NoPayrollPayStatementHeaderEntityPayrollEssPayStatementEntity
PaymentStatusCurrent payment stage of the statement.Enum
PayrollPaymentStatus (enum)
NoPayrollPayStatementHeaderEntity
PaymentTypeType of payment run: primary, additional, gross up or manual.Enum
PayrollPaymentType (enum)
NoPayrollPayStatementHeaderEntity
PayPeriodPay period the statement belongs to.Int64
PayrollPayPeriodRecId
YesPayrollPayPeriod.RecIdPayrollPayStatementHeaderEntity
PostedStatusWhether the statement is posted, not posted or in process.Enum
PayrollPayStatementPostedStatus (enum)
NoPayrollPayStatementHeaderEntity
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
ReversedPayStatementPay statement that this one reverses.Int64
PayrollPayStatementRecId
NoPayrollPayStatement.RecIdPayrollPayStatementHeaderEntity
SourceDocumentHeaderSource document header linked to the statement.Int64
SourceDocumentHeaderRecId
NoSourceDocumentHeader.RecIdPayrollPayStatementHeaderEntity
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
VendTransVendor transaction for the payment invoice.Int64
VendTransRefRecId
NoVendTrans.RecIdPayrollPayStatementHeaderEntity
WorkerWorker the statement is for.Int64
HcmWorkerRecId
YesHcmWorker.RecIdPayrollPayStatementHeaderEntity

Indexes (3)

Relations (6)

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

  • LedgerJournalTable → LedgerJournalTable

    Join on PaymentJournalBatchNum = LedgerJournalTable.JournalNum, LedgerJournalTable.JournalType = LedgerJournalType::PayrollDisbursement

    Zero or one PayrollPayStatement record → exactly one LedgerJournalTable record

  • PayPeriod_FK → PayrollPayPeriod

    Join on PayPeriod = PayrollPayPeriod.RecId

    Many PayrollPayStatement records → exactly one PayrollPayPeriod record

  • ReversedPayStatement_FK → PayrollPayStatement

    Join on ReversedPayStatement = PayrollPayStatement.RecId

    Zero or one PayrollPayStatement record → exactly one PayrollPayStatement record

  • SourceDocumentHeader_FK → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Zero or one PayrollPayStatement record → exactly one SourceDocumentHeader record

  • VendInvoicePosted → VendTrans

    Join on VendTrans = VendTrans.RecId

    Zero or one PayrollPayStatement record → exactly one VendTrans record

  • Worker_FK → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many PayrollPayStatement records → exactly one HcmWorker record

Get this data out

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

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

Email sales@drdynamics.co.uk