Data entity

PayrollEarningStatementLineEntity

Read-only list of earnings statement lines. Each line has an earning code, amount, quantity, rate, earnings date and accounting date. It also has payment status, source, project details and default dimensions. It can link to a position, a benefit, a tax region, a location and a premium code. The key is company, statement number and line number.

Entity name
PayrollEarningStatementLineEntity
Public entity name
EarningStatementLine
OData collection
EarningStatementLines
Category
Document
Module
Payroll
Read-only
Yes
Data management enabled
Yes
Configuration key
PayrollAdministration
Keys
Company, EarningsStatementNumber, LineNumber
Staging table
PayrollEarningStatementLineStaging

Use it in Power BI and Power Platform

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

  • PayrollEarningStatementLine · root
  • EarningCode (table PayrollEarningCode) · InnerJoin to PayrollEarningStatementLine · read-only
  • EarningStatement (table PayrollEarningStatement) · InnerJoin to PayrollEarningStatementLine · read-only
  • Position (table HcmPosition) · InnerJoin to PayrollEarningStatementLine · read-only
  • WorkerCompensationBenefit (table HcmBenefit) · OuterJoin to PayrollEarningStatementLine · read-only
  • WorkerGeneralLiabilityInsuranceBenefit (table HcmBenefit) · OuterJoin to PayrollEarningStatementLine · read-only
  • WorkerTaxRegion (table PayrollWorkerTaxRegion) · InnerJoin to PayrollEarningStatementLine · read-only
  • TaxRegion_FK (table PayrollTaxRegion) · InnerJoin to WorkerTaxRegion · read-only
  • Logistics_FK (table LogisticsLocation) · InnerJoin to TaxRegion_FK · read-only
  • Worker_FK (table HcmWorker) · InnerJoin to WorkerTaxRegion · read-only
  • OriginatingPayrollEarningStatementLine (table PayrollEarningStatementLine) · OuterJoin to PayrollEarningStatementLine · read-only
  • OriginatingEarningStatement (table PayrollEarningStatement) · OuterJoin to OriginatingPayrollEarningStatementLine · read-only
  • PremiumEarningCode (table PayrollPremiumEarningCode) · OuterJoin to PayrollEarningStatementLine · read-only
  • DimensionDAVS (table DimensionSetEntity) · OuterJoin to PayrollEarningStatementLine · read-only
  • AccountingDistributionTemplate · OuterJoin to PayrollEarningStatementLine · read-only

Fields (44)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AmountAmount of the earning line in the accounting currency.Real
PayrollEarningAccountingCurrencyAmount
NoYesPayrollEarningStatementLine.AccountingCurrencyAmount
AccountingDateDate used as the accounting date for the line.Date
TransDate
NoYesPayrollEarningStatementLine.AccountingDate
DimensionSet of default financial dimension values for the line.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdPayrollEarningStatementLine.DefaultDimension
EarningCodeEarning code that the line is recorded for.Int64
PayrollEarningCodeRecId
YesNo (private)PayrollEarningCode.RecIdPayrollEarningStatementLine.EarningCode
EarningsDateDate on which the earning applies.Date
TransDate
YesYesPayrollEarningStatementLine.EarningDate
EarningRateRate applied to the earning on this line.Real
PayrollEarningRate
NoYesPayrollEarningStatementLine.EarningRate
EarningsStatementHeaderEarnings statement header that this line belongs to.Int64
PayrollEarningStatementRecId
YesNo (private)PayrollEarningStatement.RecIdPayrollEarningStatementLine.EarningStatement
GenerationSourceShows how the line was created, such as user entry, recurring, imported or premium.Enum
PayrollGenerationSource
  • UserEntry 1
  • Recurring 2
  • Salary 3
  • Imported 4
  • WorkerLeave 5
  • PositionSchedule 6
  • Retroactive 7
  • Premium 8
YesYesPayrollEarningStatementLine.GenerationSource
LineModifiedYes/No flag showing whether the line was changed after it was created.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningStatementLine.isEdited
IsManualYes/No flag showing whether the line was entered manually.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollEarningStatementLine.IsManual
NoteFree-text note for the line.String (-1)
Notes
NoYesPayrollEarningStatementLine.Note
PaymentStatusPayment processing state of the line: none, on hold, released or processed.Enum
PayrollPaymentProcessingStatus
  • None 1
  • OnHold 2
  • Released 3
  • Processed 4
YesYesPayrollEarningStatementLine.PaymentStatus
PayStatementEarningLinePay statement earning line linked to this line.Int64
PayrollPayStatementEarningLineRecId
NoNo (private)PayrollPayStatementEarningLine.RecIdPayrollEarningStatementLine.PayStatementEarningLine
PositionPosition that the line relates to.Int64
HcmPositionRecId
YesNo (private)HcmPosition.RecIdPayrollEarningStatementLine.Position
ActivityNumberProject activity that the line is assigned to.String (50)
ProjActivityNumber
NoYesProjActivity.ActivityNumberPayrollEarningStatementLine.ProjActivityNumber
ProjectCategoryProject category that the line is assigned to.String (30)
ProjCategoryId
NoYesProjCategory.CategoryIdPayrollEarningStatementLine.ProjCategoryId
ProjectIDProject that the line is assigned to.String (20)
ProjId
NoYesProjTable.ProjIdPayrollEarningStatementLine.ProjId
ProjectLinePropertyProject line property set on the line.String
ProjLinePropertyId
NoYesProjLineProperty.LinePropertyIdPayrollEarningStatementLine.ProjLinePropertyId
QuantityQuantity recorded for the earning, for example hours or units.Real
PayrollEarningQuantity
NoYesPayrollEarningStatementLine.Quantity
WorkerCompensationBenefitBenefit record used as the workers' compensation code for the line.Int64
RefRecId
NoNo (private)HcmBenefit.RecIdPayrollEarningStatementLine.WorkerCompensationBenefit
GeneralLiabilityInsuranceBenefit record used for general liability insurance on the line.Int64
RefRecId
NoNo (private)HcmBenefit.RecIdPayrollEarningStatementLine.WorkerGLIBenefit
TaxRegionWorker tax region that applies to the line.Int64
PayrollWorkerTaxRegionRecId
YesNo (private)PayrollWorkerTaxRegion.RecIdPayrollEarningStatementLine.WorkerTaxRegion
PremiumCodePremium code linked to the line.Int64
PayrollPremiumEarningCodeRecId
NoNo (private)PayrollPremiumEarningCode.RecIdPayrollEarningStatementLine.PremiumEarningCode
OriginalRetroactiveRateRate that was in place before a retroactive change.Real
PayrollEarningRate
NoYesPayrollEarningStatementLine.RetroactivePriorRate
WorkPeriodWork period that the line belongs to.Int64
PayrollWorkPeriodRecId
NoNo (private)PayrollWorkPeriod.RecIdPayrollEarningStatementLine.WorkPeriod
LineNumberNumber that gives the position of the line.Real
LineNum
NoYesPayrollEarningStatementLine.LineNum
EarningCodeIdUnique ID of the earning code.String (50)
PayrollEarningCodeId
YesYesPayrollEarningCode.EarningCode
EarningsStatementNumberUnique number of the earnings statement.String (20)
PayrollEarningStatementId
YesYesPayrollEarningStatement.DocumentNumber
PositionIdCode that identifies the position.String (25)
HcmPositionId
YesYesHcmPosition.PositionId
WorkerCompensationBenefitIdShort code that identifies the benefit.String (20)
HcmBenefitId
NoYesHcmBenefit.BenefitId
WorkerGeneralLiabilityInsuranceBenefitIdShort code that identifies the benefit.String (20)
HcmBenefitId
NoYesHcmBenefit.BenefitId
WorkerTaxRegionRecIdPoints to the tax region assigned to the worker.Int64
PayrollTaxRegionRecId
YesNo (private)PayrollTaxRegion.RecIdPayrollWorkerTaxRegion.TaxRegion
WorkerPoints to the worker who is linked to the tax region.Int64
HcmWorkerRecId
YesNo (private)HcmWorker.RecIdPayrollWorkerTaxRegion.Worker
LocationIdPoints 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
OriginatingEarningStatementLineEarnings statement line that this line came from.Int64
PayrollEarningStatementLineRecId
NoNo (private)PayrollEarningStatementLine.RecIdPayrollEarningStatementLine.OriginatingEarningStatementLine
OriginatingEarningsStatementHeaderEarnings statement header that this line belongs to.Int64
PayrollEarningStatementRecId
YesNo (private)PayrollEarningStatement.RecIdPayrollEarningStatementLine.EarningStatement
OriginatingEarningStatementLineNumberNumber that gives the position of the line.Real
LineNum
NoYesPayrollEarningStatementLine.LineNum
OriginatingEarningStatementNumberUnique number of the earnings statement.String (20)
PayrollEarningStatementId
NoYesPayrollEarningStatement.DocumentNumber
PremiumEarningCodeUnique ID of the premium code.String (50)
PayrollPremiumEarningCodeId
NoYesPayrollPremiumEarningCode.PremiumEarningCode
DimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
CompanyThe company (legal entity) that the record belongs to.String (4)
DataAreaId
YesYesPayrollEarningStatementLine.DataAreaId
AccountingDistributionTemplateName that identifies the template.String (40)
TemplateName
YesYesAccountingDistributionTemplate.Name

Foreign keys (19)

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

Email sales@drdynamics.co.uk