Data entity

PayrollPayStatementHeaderEntity

Header records for pay statements, keyed by pay statement number. They hold gross pay, net pay, payment date, status, payment run type, disbursement format and payment journal. They also have posted and reversed flags, and link to the worker, pay cycle and pay period.

Entity name
PayrollPayStatementHeaderEntity
Public entity name
PayStatementHeader
OData collection
PayStatementHeaders
Category
Document
Module
Payroll
Read-only
No
Data management enabled
Yes
Configuration key
PayrollAdministration
Keys
PayStatementNumber
Staging table
PayrollPayStatementHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PayStatementHeaders
Dataverse virtual table
mserp_payrollpaystatementheaderentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • PayrollPayStatement · root
  • PayPeriod_FK (table PayrollPayPeriod) · InnerJoin to PayrollPayStatement · read-only
  • PayrollPayCycle · InnerJoin to PayPeriod_FK · read-only
  • ReversedPayStatement_FK (table PayrollPayStatement) · OuterJoin to PayrollPayStatement · read-only
  • Worker_FK (table HcmWorker) · InnerJoin to PayrollPayStatement · read-only

Fields (24)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
BatchNumberBatch number of the pay statement.String (20)
PayrollPayStatementBatchNumber
YesYesPayrollPayStatement.BatchNumber
PayStatementNumberUnique number of the pay statement.String (20)
PayrollPayStatementId
YesYesPayrollPayStatement.DocumentNumber
GrossPayGross pay amount.Real
PayrollStatementAccountingCurrencyAmount
NoYesPayrollPayStatement.GrossAccountingCurrencyAmount
PayStatementReversedYes/no flag showing whether the pay statement was reversed.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollPayStatement.IsReversed
NetPayNet pay amount.Real
PayrollStatementAccountingCurrencyAmount
NoYesPayrollPayStatement.NetAccountingCurrencyAmount
PaymentDateDate of payment.Date
PayrollPaymDate
YesYesPayrollPayStatement.PaymentDate
PaymentJournalPayment journal linked to this statement.String (20)
LedgerJournalId
NoYesLedgerJournalTable.JournalNumPayrollPayStatement.PaymentJournalBatchNum
DisbursementFormatDisbursement format, such as cheque, electronic payment or cash.Enum
PayrollPaymentMethodType
  • Check 0
  • ElectronicPayment 0
  • Cash 1
  • BankDraft 2
  • Other 3
NoYesPayrollPayStatement.PaymentMethodType
PayStatementStatusCurrent payment stage of the statement.Enum
PayrollPaymentStatus
  • Calculated 0
  • RequiresRecalculation 1
  • SentToPaymentJournal 2
  • PaymentIssued 3
NoYesPayrollPayStatement.PaymentStatus
PaymentRunTypeType of payment run: primary, additional, gross up or manual.Enum
PayrollPaymentType
  • Primary 1
  • Additional 2
  • GrossUp 3
  • Manual 4
NoYesPayrollPayStatement.PaymentType
PayPeriodPay period the statement belongs to.Int64
PayrollPayPeriodRecId
YesNo (private)PayrollPayPeriod.RecIdPayrollPayStatement.PayPeriod
PostedWhether the statement is posted, not posted or in process.Enum
PayrollPayStatementPostedStatus
  • None 0
  • Posted 1
  • InProcess 2
NoYesPayrollPayStatement.PostedStatus
ReversedPayStatementPay statement that this one reverses.Int64
PayrollPayStatementRecId
NoNo (private)PayrollPayStatement.RecIdPayrollPayStatement.ReversedPayStatement
SourceDocumentSource document header linked to the statement.Int64
SourceDocumentHeaderRecId
NoNo (private)SourceDocumentHeader.RecIdPayrollPayStatement.SourceDocumentHeader
PaymentInvoiceVendor transaction for the payment invoice.Int64
VendTransRefRecId
NoNo (private)VendTrans.RecIdPayrollPayStatement.VendTrans
WorkerWorker the statement is for.Int64
HcmWorkerRecId
YesNo (private)HcmWorker.RecIdPayrollPayStatement.Worker
CreationTypeShows whether the statement was generated or entered by a user.Enum
PayrollPayStatementCreationType
  • Generated 0
  • UserEntry 1
NoYesPayrollPayStatement.CreationType
PeriodStartDateFirst date of the pay period.Date
PayrollPeriodStart
YesYesPayrollPayPeriod.PeriodStartDate
PeriodEndDateLast date of the pay period.Date
PayrollPeriodEnd
YesYesPayrollPayPeriod.PeriodEndDate
ReversedPayStatementNumberUnique number of the pay statement.String (20)
PayrollPayStatementId
NoYesPayrollPayStatement.DocumentNumber
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
YesYesHcmWorker.PersonnelNumber
PayCycleIdUnique ID of the pay cycle.String (15)
PayrollPayCycleId
YesYesPayrollPayCycle.PayCycleId
CompanyThe company (legal entity) that the record belongs to.String (4)
DataAreaId
YesYesPayrollPayStatement.DataAreaId
DisableAccountingYes/no flag to turn off accounting for the statement.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollPayStatement.DisableAccounting

Foreign keys (6)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with PayrollPayStatementHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk