Table

PayrollEarningStatementLine

Earnings statement lines

Holds the individual lines of an earnings statement. Each line links to its earnings statement header, an earning code, a worker tax region and a work period. A line can also carry project details, a position, benefit references and a premium code. A line can point back to an originating line, and the table has fields for retroactive rates.

Table name
PayrollEarningStatementLine
Module
Payroll
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
PayrollAdministration
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (38)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingCurrencyAmountAmount of the earning line in the accounting currency.Real
PayrollEarningAccountingCurrencyAmount
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
AccountingDateDate used as the accounting date for the line.Date
TransDate
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
AccountingDistributionTemplateAccounting distribution template linked to the line.Int64
AccountingDistributionTemplateRecId
NoAccountingDistributionTemplate.RecIdNone
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoPayrollEarningStatementLineEntity
DefaultDimensionSet of default financial dimension values for the line.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdPayrollEarningStatementLineEntity
EarningCodeEarning code that the line is recorded for.Int64
PayrollEarningCodeRecId
YesPayrollEarningCode.RecIdPayrollEarningStatementLineEntity
EarningDateDate on which the earning applies.Date
TransDate
YesPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
EarningRateRate applied to the earning on this line.Real
PayrollEarningRate
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
EarningStatementEarnings statement header that this line belongs to.Int64
PayrollEarningStatementRecId
YesPayrollEarningStatement.RecIdPayrollEarningStatementLineEntityPayrollEarningStatementLineEntity
GenerationSourceShows how the line was created, such as user entry, recurring, imported or premium.Enum
PayrollGenerationSource (enum)
YesPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
isEditedYes/No flag showing whether the line was changed after it was created.Enum
NoYesId
NoYes (enum)
NoPayrollEarningStatementLineEntity
IsManualYes/No flag showing whether the line was entered manually.Enum
NoYes (enum)
NoPayrollEarningStatementLineEntity
LineNumNumber that gives the position of the line.Real
LineNum
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineEntity
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
NoteFree-text note for the line.String (-1)
Notes
NoPayrollEarningStatementLineEntity
OriginatingEarningStatementLineEarnings statement line that this line came from.Int64
PayrollEarningStatementLineRecId
NoPayrollEarningStatementLine.RecIdPayrollEarningStatementLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentStatusPayment processing state of the line: none, on hold, released or processed.Enum
PayrollPaymentProcessingStatus (enum)
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
PayStatementEarningLinePay statement earning line linked to this line.Int64
PayrollPayStatementEarningLineRecId
NoPayrollPayStatementEarningLine.RecIdPayrollEarningStatementLineEntity
PositionPosition that the line relates to.Int64
HcmPositionRecId
YesHcmPosition.RecIdPayrollEarningStatementLineEntity
PremiumEarningCodePremium code linked to the line.Int64
PayrollPremiumEarningCodeRecId
NoPayrollPremiumEarningCode.RecIdPayrollEarningStatementLineEntity
ProjActivityNumberProject activity that the line is assigned to.String (50)
ProjActivityNumber
NoProjActivity.ActivityNumberPayrollEarningStatementLineEntity
ProjCategoryIdProject category that the line is assigned to.String (30)
ProjCategoryId
NoProjCategory.CategoryIdPayrollEarningStatementLineEntity
ProjIdProject that the line is assigned to.String (20)
ProjId
NoProjTable.ProjIdPayrollEarningStatementLineEntity
ProjLinePropertyIdProject line property set on the line.String
ProjLinePropertyId
NoProjLineProperty.LinePropertyIdPayrollEarningStatementLineEntity
QuantityQuantity recorded for the earning, for example hours or units.Real
PayrollEarningQuantity
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
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
RetroactivePriorRateRate that was in place before a retroactive change.Real
PayrollEarningRate
NoPayrollEarningStatementLineEntityPayrollEarningStatementLineInquiryEntity
SourceDocumentLineSource document line that the line is linked to.Int64
SourceDocumentLineRecId
NoSourceDocumentLine.RecIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WorkerCompensationBenefitBenefit record used as the workers' compensation code for the line.Int64
RefRecId
NoHcmBenefit.RecIdPayrollEarningStatementLineEntity
WorkerGLIBenefitBenefit record used for general liability insurance on the line.Int64
RefRecId
NoHcmBenefit.RecIdPayrollEarningStatementLineEntity
WorkerTaxRegionWorker tax region that applies to the line.Int64
PayrollWorkerTaxRegionRecId
YesPayrollWorkerTaxRegion.RecIdPayrollEarningStatementLineEntity
WorkPeriodWork period that the line belongs to.Int64
PayrollWorkPeriodRecId
NoPayrollWorkPeriod.RecIdPayrollEarningStatementLineEntity

Indexes (4)

Relations (17)

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

  • AccountingDistributionTemplate → AccountingDistributionTemplate

    Join on AccountingDistributionTemplate = AccountingDistributionTemplate.RecId

    Many PayrollEarningStatementLine records → zero or one AccountingDistributionTemplate record

  • ActivityNumber → ProjActivity

    Join on ProjActivityNumber = ProjActivity.ActivityNumber

    Many PayrollEarningStatementLine records → zero or one ProjActivity record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many PayrollEarningStatementLine records → zero or one DimensionAttributeValueSet record

  • EarningCode → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many PayrollEarningStatementLine records → exactly one PayrollEarningCode record

  • EarningStatement → PayrollEarningStatement

    Join on EarningStatement = PayrollEarningStatement.RecId

    Many PayrollEarningStatementLine records → exactly one PayrollEarningStatement record

  • LinePropertyId → ProjLineProperty

    Join on ProjLinePropertyId = ProjLineProperty.LinePropertyId

    Many PayrollEarningStatementLine records → zero or one ProjLineProperty record

  • PayStatementEarningLine → PayrollPayStatementEarningLine

    Join on PayStatementEarningLine = PayrollPayStatementEarningLine.RecId

    Many PayrollEarningStatementLine records → zero or one PayrollPayStatementEarningLine record

  • Position → HcmPosition

    Join on Position = HcmPosition.RecId

    Many PayrollEarningStatementLine records → exactly one HcmPosition record

  • ProjCategoryId → ProjCategory

    Join on ProjCategoryId = ProjCategory.CategoryId

    Many PayrollEarningStatementLine records → zero or one ProjCategory record

  • ProjId → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many PayrollEarningStatementLine records → exactly one ProjTable record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Many PayrollEarningStatementLine records → zero or one SourceDocumentLine record

  • WorkerCompensationBenefit → HcmBenefit

    Join on WorkerCompensationBenefit = HcmBenefit.RecId

    Many PayrollEarningStatementLine records → zero or one HcmBenefit record

  • WorkerGeneralLiabilityInsuranceBenefit → HcmBenefit

    Join on WorkerGLIBenefit = HcmBenefit.RecId

    Many PayrollEarningStatementLine records → zero or one HcmBenefit record

  • WorkerTaxRegion → PayrollWorkerTaxRegion

    Join on WorkerTaxRegion = PayrollWorkerTaxRegion.RecId

    Many PayrollEarningStatementLine records → exactly one PayrollWorkerTaxRegion record

  • PayrollEarningStatementLine → PayrollEarningStatementLine

    Join on OriginatingEarningStatementLine = PayrollEarningStatementLine.RecId

    Many PayrollEarningStatementLine records → zero or one PayrollEarningStatementLine record

  • PremiumEarningCode → PayrollPremiumEarningCode

    Join on PremiumEarningCode = PayrollPremiumEarningCode.RecId

    Many PayrollEarningStatementLine records → zero or one PayrollPremiumEarningCode record

  • WorkPeriod → PayrollWorkPeriod

    Join on WorkPeriod = PayrollWorkPeriod.RecId

    Many PayrollEarningStatementLine records → zero or one PayrollWorkPeriod record

Get this data out

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

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

Email sales@drdynamics.co.uk