Data entity

PayrollPayStatementEarningLineEntity

Earning lines on pay statements, keyed by pay statement number and line number. Each line has an earning code, earnings date, rate, quantity and amount in transaction currency. It links to a position, benefit, location and worker tax region, and to an accounting distribution template.

Entity name
PayrollPayStatementEarningLineEntity
Public entity name
PayStatementEarningLine
OData collection
PayStatementEarningLines
Category
Document
Module
Payroll
Read-only
No
Data management enabled
Yes
Configuration key
PayrollAdministration
Keys
PayStatementNumber, LineNumber
Staging table
PayrollPayStatementEarningLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PayStatementEarningLines
Dataverse virtual table
mserp_payrollpaystatementearninglineentity. 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

  • PayrollPayStatementEarningLine · root
  • AccountingDistributionTemplate_FK (table AccountingDistributionTemplate) · OuterJoin to PayrollPayStatementEarningLine · read-only
  • CompanyInfo · OuterJoin to AccountingDistributionTemplate_FK · read-only
  • PayStatement_FK (table PayrollPayStatement) · InnerJoin to PayrollPayStatementEarningLine · read-only
  • Position_FK (table HcmPosition) · OuterJoin to PayrollPayStatementEarningLine · read-only
  • EarningCode_FK (table PayrollEarningCode) · InnerJoin to PayrollPayStatementEarningLine · read-only
  • WorkerCompensationBenefit_FK (table HcmBenefit) · OuterJoin to PayrollPayStatementEarningLine · read-only
  • WorkerGeneralLiabilityInsuranceBenefitFK (table HcmBenefit) · OuterJoin to PayrollPayStatementEarningLine · read-only
  • WorkerTaxRegion_FK (table PayrollWorkerTaxRegion) · InnerJoin to PayrollPayStatementEarningLine · read-only
  • TaxRegion_FK (table PayrollTaxRegion) · InnerJoin to WorkerTaxRegion_FK · read-only
  • Logistics_FK (table LogisticsLocation) · InnerJoin to TaxRegion_FK · read-only
  • Worker_FK (table HcmWorker) · InnerJoin to WorkerTaxRegion_FK · read-only
  • ReversedPayStatementLine_FK (table PayrollPayStatementLine) · OuterJoin to PayrollPayStatementEarningLine · read-only
  • PayStatement_FK1 (table PayrollPayStatement) · OuterJoin to ReversedPayStatementLine_FK · read-only
  • PayrollPayStatementBenefitLine · Derived to ReversedPayStatementLine_FK
  • PayrollPayStatementEarningLine1 (table PayrollPayStatementEarningLine) · Derived to ReversedPayStatementLine_FK
  • PayrollPayStatementTaxLine · Derived to ReversedPayStatementLine_FK

Fields (34)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AmountInTransactionCurrencyAmount of the line.Real
PayrollStatementAccountingCurrencyAmount
YesYesPayrollPayStatementLine.AccountingCurrencyAmount
AccountingDateAccounting date of the line.Date
AccountingDate
YesYesPayrollPayStatementLine.AccountingDate
TemplateIdAccounting distribution template used for the line.Int64
AccountingDistributionTemplateRecId
NoNo (private)AccountingDistributionTemplate.RecIdPayrollPayStatementLine.AccountingDistributionTemplate
EmployerContributionYes/no flag for an employer contribution.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollPayStatementLine.IsEmployer
LineToRemoveYes/no flag showing the line is to be removed.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollPayStatementLine.IsMarkedForRemoval
LineOverriddenYes/no flag showing the line was overridden and is locked.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollPayStatementLine.IsPayStatementLineOverridden
PayStatementPay statement the line belongs to.Int64
PayrollPayStatementRecId
YesNo (private)PayrollPayStatement.RecIdPayrollPayStatementLine.PayStatement
PositionPosition linked to the line.Int64
HcmPositionRecId
NoNo (private)HcmPosition.RecIdPayrollPayStatementLine.Position
PayStatementLineSourceWhere the line came from, such as earnings, benefit, tax code or manual entry.Enum
PayrollPayStatementLineSource
  • EarningStatement 0
  • FringeBenefitRecover 1
  • GrossUpEarning 2
  • WorkerEnrolledBenefit 3
  • ArrearRecover 4
  • WorkerTaxCode 5
  • Manual 6
  • Upgrade 7
  • ArrearCalculation 8
NoYesPayrollPayStatementLine.Source
SourceDocumentLineSource document line linked to this line.Int64
SourceDocumentLineRecId
NoNo (private)SourceDocumentLine.RecIdPayrollPayStatementLine.SourceDocumentLine
LineNumberLine number.Real
LineNum
YesYesPayrollPayStatementLine.LineNum
CompanyThe company (legal entity) that the record belongs to.String (4)
DataAreaId
YesYesPayrollPayStatementEarningLine.DataAreaId
EarningCodeEarning code applied to the line.Int64
PayrollEarningCodeRecId
YesNo (private)PayrollEarningCode.RecIdPayrollPayStatementEarningLine.EarningCode
EarningsDateDate of the earnings.Date
PayrollPayStatementEarningDate
NoYesPayrollPayStatementEarningLine.EarningDate
EarningRateRate applied to the earnings.Real
PayrollEarningRate
YesYesPayrollPayStatementEarningLine.EarningRate
QuantityQuantity of earnings, such as hours.Real
PayrollEarningQuantity
YesYesPayrollPayStatementEarningLine.Quantity
WorkerCompensationBenefitBenefit used as the workers' compensation code.Int64
HcmBenefitRecId
NoNo (private)HcmBenefit.RecIdPayrollPayStatementEarningLine.WorkerCompensationBenefit
GeneralLiabilityInsuranceBenefit used for general liability insurance.Int64
HcmBenefitRecId
NoNo (private)HcmBenefit.RecIdPayrollPayStatementEarningLine.WorkerGeneralLiabilityInsuranceBenefit
TaxRegionWorker tax region linked to the line.Int64
PayrollWorkerTaxRegionRecId
YesNo (private)PayrollWorkerTaxRegion.RecIdPayrollPayStatementEarningLine.WorkerTaxRegion
AccountingDistributionTemplateIdName that identifies the template.String (40)
TemplateName
NoYesAccountingDistributionTemplate.Name
AccountingDistributionLegalEntityIdPoints to the legal entity (company) that owns the template.Int64
LegalEntityRecId
YesNo (private)CompanyInfo.RecIdAccountingDistributionTemplate.LegalEntity
AccountingDistributionLegalEntityCompany ID of the legal entity. It is the key.String
SelectableDataArea
NoYesCompanyInfo.DataArea
PayStatementNumberUnique number of the pay statement.String (20)
PayrollPayStatementId
YesYesPayrollPayStatement.DocumentNumber
PositionIdCode that identifies the position.String (25)
HcmPositionId
NoYesHcmPosition.PositionId
EarningCodeIdUnique ID of the earning code.String (50)
PayrollEarningCodeId
YesYesPayrollEarningCode.EarningCode
CompensationBenefitIdShort code that identifies the benefit.String (20)
HcmBenefitId
NoYesHcmBenefit.BenefitId
GeneralLiabilityInsuranceBenefitIdShort code that identifies the benefit.String (20)
HcmBenefitId
NoYesHcmBenefit.BenefitId
WorkerTaxRegionPoints to the tax region assigned to the worker.Int64
PayrollTaxRegionRecId
YesNo (private)PayrollTaxRegion.RecIdPayrollWorkerTaxRegion.TaxRegion
TaxRegionLocationIdPoints to the location record that defines this tax region.Int64
LogisticsLocationRecId
YesNo (private)LogisticsLocation.RecIdPayrollTaxRegion.LogisticsLocation
WorkerTaxRegionLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
YesYesLogisticsLocation.LocationId
PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
YesYesHcmWorker.PersonnelNumber
ReversedPayStatementNumberUnique number of the pay statement.String (20)
PayrollPayStatementId
NoYesPayrollPayStatement.DocumentNumber
ReversedPayStatementPay statement the line belongs to.Int64
PayrollPayStatementRecId
YesNo (private)PayrollPayStatement.RecIdPayrollPayStatementLine.PayStatement
ReversedPayStatementLineNumLine number.Real
LineNum
NoYesPayrollPayStatementLine.LineNum

Foreign keys (12)

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 PayrollPayStatementEarningLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk