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· rootEarningCode(tablePayrollEarningCode) · InnerJoin toPayrollEarningStatementLine· read-onlyEarningStatement(tablePayrollEarningStatement) · InnerJoin toPayrollEarningStatementLine· read-onlyPosition(tableHcmPosition) · InnerJoin toPayrollEarningStatementLine· read-onlyWorkerCompensationBenefit(tableHcmBenefit) · OuterJoin toPayrollEarningStatementLine· read-onlyWorkerGeneralLiabilityInsuranceBenefit(tableHcmBenefit) · OuterJoin toPayrollEarningStatementLine· read-onlyWorkerTaxRegion(tablePayrollWorkerTaxRegion) · InnerJoin toPayrollEarningStatementLine· read-onlyTaxRegion_FK(tablePayrollTaxRegion) · InnerJoin toWorkerTaxRegion· read-onlyLogistics_FK(tableLogisticsLocation) · InnerJoin toTaxRegion_FK· read-onlyWorker_FK(tableHcmWorker) · InnerJoin toWorkerTaxRegion· read-onlyOriginatingPayrollEarningStatementLine(tablePayrollEarningStatementLine) · OuterJoin toPayrollEarningStatementLine· read-onlyOriginatingEarningStatement(tablePayrollEarningStatement) · OuterJoin toOriginatingPayrollEarningStatementLine· read-onlyPremiumEarningCode(tablePayrollPremiumEarningCode) · OuterJoin toPayrollEarningStatementLine· read-onlyDimensionDAVS(tableDimensionSetEntity) · OuterJoin toPayrollEarningStatementLine· read-onlyAccountingDistributionTemplate· OuterJoin toPayrollEarningStatementLine· read-only
Fields (44)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AmountAmount of the earning line in the accounting currency. | RealPayrollEarningAccountingCurrencyAmount | No | Yes | PayrollEarningStatementLine.AccountingCurrencyAmount | |
AccountingDateDate used as the accounting date for the line. | DateTransDate | No | Yes | PayrollEarningStatementLine.AccountingDate | |
DimensionSet of default financial dimension values for the line. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | PayrollEarningStatementLine.DefaultDimension |
EarningCodeEarning code that the line is recorded for. | Int64PayrollEarningCodeRecId | Yes | No (private) | PayrollEarningCode.RecId | PayrollEarningStatementLine.EarningCode |
EarningsDateDate on which the earning applies. | DateTransDate | Yes | Yes | PayrollEarningStatementLine.EarningDate | |
EarningRateRate applied to the earning on this line. | RealPayrollEarningRate | No | Yes | PayrollEarningStatementLine.EarningRate | |
EarningsStatementHeaderEarnings statement header that this line belongs to. | Int64PayrollEarningStatementRecId | Yes | No (private) | PayrollEarningStatement.RecId | PayrollEarningStatementLine.EarningStatement |
GenerationSourceShows how the line was created, such as user entry, recurring, imported or premium. | Enum
| Yes | Yes | PayrollEarningStatementLine.GenerationSource | |
LineModifiedYes/No flag showing whether the line was changed after it was created. | EnumNoYesId
| No | Yes | PayrollEarningStatementLine.isEdited | |
IsManualYes/No flag showing whether the line was entered manually. | Enum
| No | Yes | PayrollEarningStatementLine.IsManual | |
NoteFree-text note for the line. | String (-1)Notes | No | Yes | PayrollEarningStatementLine.Note | |
PaymentStatusPayment processing state of the line: none, on hold, released or processed. | Enum
| Yes | Yes | PayrollEarningStatementLine.PaymentStatus | |
PayStatementEarningLinePay statement earning line linked to this line. | Int64PayrollPayStatementEarningLineRecId | No | No (private) | PayrollPayStatementEarningLine.RecId | PayrollEarningStatementLine.PayStatementEarningLine |
PositionPosition that the line relates to. | Int64HcmPositionRecId | Yes | No (private) | HcmPosition.RecId | PayrollEarningStatementLine.Position |
ActivityNumberProject activity that the line is assigned to. | String (50)ProjActivityNumber | No | Yes | ProjActivity.ActivityNumber | PayrollEarningStatementLine.ProjActivityNumber |
ProjectCategoryProject category that the line is assigned to. | String (30)ProjCategoryId | No | Yes | ProjCategory.CategoryId | PayrollEarningStatementLine.ProjCategoryId |
ProjectIDProject that the line is assigned to. | String (20)ProjId | No | Yes | ProjTable.ProjId | PayrollEarningStatementLine.ProjId |
ProjectLinePropertyProject line property set on the line. | StringProjLinePropertyId | No | Yes | ProjLineProperty.LinePropertyId | PayrollEarningStatementLine.ProjLinePropertyId |
QuantityQuantity recorded for the earning, for example hours or units. | RealPayrollEarningQuantity | No | Yes | PayrollEarningStatementLine.Quantity | |
WorkerCompensationBenefitBenefit record used as the workers' compensation code for the line. | Int64RefRecId | No | No (private) | HcmBenefit.RecId | PayrollEarningStatementLine.WorkerCompensationBenefit |
GeneralLiabilityInsuranceBenefit record used for general liability insurance on the line. | Int64RefRecId | No | No (private) | HcmBenefit.RecId | PayrollEarningStatementLine.WorkerGLIBenefit |
TaxRegionWorker tax region that applies to the line. | Int64PayrollWorkerTaxRegionRecId | Yes | No (private) | PayrollWorkerTaxRegion.RecId | PayrollEarningStatementLine.WorkerTaxRegion |
PremiumCodePremium code linked to the line. | Int64PayrollPremiumEarningCodeRecId | No | No (private) | PayrollPremiumEarningCode.RecId | PayrollEarningStatementLine.PremiumEarningCode |
OriginalRetroactiveRateRate that was in place before a retroactive change. | RealPayrollEarningRate | No | Yes | PayrollEarningStatementLine.RetroactivePriorRate | |
WorkPeriodWork period that the line belongs to. | Int64PayrollWorkPeriodRecId | No | No (private) | PayrollWorkPeriod.RecId | PayrollEarningStatementLine.WorkPeriod |
LineNumberNumber that gives the position of the line. | RealLineNum | No | Yes | PayrollEarningStatementLine.LineNum | |
EarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | Yes | Yes | PayrollEarningCode.EarningCode | |
EarningsStatementNumberUnique number of the earnings statement. | String (20)PayrollEarningStatementId | Yes | Yes | PayrollEarningStatement.DocumentNumber | |
PositionIdCode that identifies the position. | String (25)HcmPositionId | Yes | Yes | HcmPosition.PositionId | |
WorkerCompensationBenefitIdShort code that identifies the benefit. | String (20)HcmBenefitId | No | Yes | HcmBenefit.BenefitId | |
WorkerGeneralLiabilityInsuranceBenefitIdShort code that identifies the benefit. | String (20)HcmBenefitId | No | Yes | HcmBenefit.BenefitId | |
WorkerTaxRegionRecIdPoints to the tax region assigned to the worker. | Int64PayrollTaxRegionRecId | Yes | No (private) | PayrollTaxRegion.RecId | PayrollWorkerTaxRegion.TaxRegion |
WorkerPoints to the worker who is linked to the tax region. | Int64HcmWorkerRecId | Yes | No (private) | HcmWorker.RecId | PayrollWorkerTaxRegion.Worker |
LocationIdPoints to the location record that defines this tax region. | Int64LogisticsLocationRecId | Yes | No (private) | LogisticsLocation.RecId | PayrollTaxRegion.LogisticsLocation |
WorkerTaxRegionLocationIdUnique ID of the location. It is the key of the table. | String (40)LogisticsLocationId | Yes | Yes | LogisticsLocation.LocationId | |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | Yes | Yes | HcmWorker.PersonnelNumber | |
OriginatingEarningStatementLineEarnings statement line that this line came from. | Int64PayrollEarningStatementLineRecId | No | No (private) | PayrollEarningStatementLine.RecId | PayrollEarningStatementLine.OriginatingEarningStatementLine |
OriginatingEarningsStatementHeaderEarnings statement header that this line belongs to. | Int64PayrollEarningStatementRecId | Yes | No (private) | PayrollEarningStatement.RecId | PayrollEarningStatementLine.EarningStatement |
OriginatingEarningStatementLineNumberNumber that gives the position of the line. | RealLineNum | No | Yes | PayrollEarningStatementLine.LineNum | |
OriginatingEarningStatementNumberUnique number of the earnings statement. | String (20)PayrollEarningStatementId | No | Yes | PayrollEarningStatement.DocumentNumber | |
PremiumEarningCodeUnique ID of the premium code. | String (50)PayrollPremiumEarningCodeId | No | Yes | PayrollPremiumEarningCode.PremiumEarningCode | |
DimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
CompanyThe company (legal entity) that the record belongs to. | String (4)DataAreaId | Yes | Yes | PayrollEarningStatementLine.DataAreaId | |
AccountingDistributionTemplateName that identifies the template. | String (40)TemplateName | Yes | Yes | AccountingDistributionTemplate.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.
Dimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many PayrollEarningStatementLine records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
EarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many PayrollEarningStatementLine records → exactly one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, PayrollEarningCodeEntity, BenefitDeductionEntity
EarningsStatementHeader→PayrollEarningStatement.RecId(key of PayrollEarningStatement)Many PayrollEarningStatementLine records → exactly one PayrollEarningStatement record
PayrollEarningStatement details: see PayrollEarningStatementHeaderEntity, PayrollEarningStatementLineInquiryEntity
PayStatementEarningLine→PayrollPayStatementEarningLine.RecId(key of PayrollPayStatementEarningLine)Many PayrollEarningStatementLine records → zero or one PayrollPayStatementEarningLine record
PayrollPayStatementEarningLine details: see PayrollPayStatementEarningLineEntity, PayrollPayStatementBenefitLineEntity, PayrollPayStatementTaxLineEntity
Position→HcmPosition.RecId(key of HcmPosition)Many PayrollEarningStatementLine records → exactly one HcmPosition record
HcmPosition details: see HcmPositionTimelineEntity, HcmJobPositionDualWriteEntity, HcmPositionEntity
ActivityNumber→ProjActivity.ActivityNumber(key of ProjActivity)Many PayrollEarningStatementLine records → zero or one ProjActivity record
Not exposed by a public entity.
ProjectCategory→ProjCategory.CategoryId(key of ProjCategory)Many PayrollEarningStatementLine records → zero or one ProjCategory record
ProjCategory details: see ProjectCategoryEntity, ProjControlCostGroupCategoriesEntity, ResResourceSetupDataEntity
ProjectID→ProjTable.ProjId(key of ProjTable)Many PayrollEarningStatementLine records → exactly one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjectLineProperty→ProjLineProperty.LinePropertyId(key of ProjLineProperty)Many PayrollEarningStatementLine records → zero or one ProjLineProperty record
ProjLineProperty details: see ProjProjectLinePropertyEntity, TrvExpMobileProjLinePropertyEntity, ProjBillingTypeLinePropertyEntity
WorkerCompensationBenefit→HcmBenefit.RecId(key of HcmBenefit)Many PayrollEarningStatementLine records → zero or one HcmBenefit record
HcmBenefit details: see HcmBenefitEligibilityOverrideEntity, HcmBenefitEntity, PayrollBenefitEarningBasisEntity
GeneralLiabilityInsurance→HcmBenefit.RecId(key of HcmBenefit)Many PayrollEarningStatementLine records → zero or one HcmBenefit record
HcmBenefit details: see HcmBenefitEligibilityOverrideEntity, HcmBenefitEntity, PayrollBenefitEarningBasisEntity
TaxRegion→PayrollWorkerTaxRegion.RecId(key of PayrollWorkerTaxRegion)Many PayrollEarningStatementLine records → exactly one PayrollWorkerTaxRegion record
PayrollWorkerTaxRegion details: see PayrollWorkerTaxRegionEntity, PayrollPositionWorkerDefaultTaxRgnEntity, PayrollPayStatementEarningLineEntity
WorkPeriod→PayrollWorkPeriod.RecId(key of PayrollWorkPeriod)Many PayrollEarningStatementLine records → zero or one PayrollWorkPeriod record
PayrollWorkPeriod details: see PayrollWorkPeriodEntity
WorkerTaxRegionRecId→PayrollTaxRegion.RecId(key of PayrollTaxRegion)Many PayrollWorkerTaxRegion records → exactly one PayrollTaxRegion record
PayrollTaxRegion details: see PayrollPayStatementEarningLineEntity, PayrollPositionWorkerDefaultTaxRgnEntity, PayrollTaxRegionDualWriteEntity
Worker→HcmWorker.RecId(key of HcmWorker)Many PayrollWorkerTaxRegion records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
LocationId→LogisticsLocation.RecId(key of LogisticsLocation)Zero or one PayrollTaxRegion record → exactly one LogisticsLocation record
LogisticsLocation details: see AccountantEntity, CustPostalAddressV2Entity, DirPartyLocationPostalAddressEntity
OriginatingEarningStatementLine→PayrollEarningStatementLine.RecId(key of PayrollEarningStatementLine)Many PayrollEarningStatementLine records → zero or one PayrollEarningStatementLine record
PayrollEarningStatementLine details: see PayrollEarningStatementLineInquiryEntity
OriginatingEarningsStatementHeader→PayrollEarningStatement.RecId(key of PayrollEarningStatement)Many PayrollEarningStatementLine records → exactly one PayrollEarningStatement record
PayrollEarningStatement details: see PayrollEarningStatementHeaderEntity, PayrollEarningStatementLineInquiryEntity
Need help with PayrollEarningStatementLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.