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· rootAccountingDistributionTemplate_FK(tableAccountingDistributionTemplate) · OuterJoin toPayrollPayStatementEarningLine· read-onlyCompanyInfo· OuterJoin toAccountingDistributionTemplate_FK· read-onlyPayStatement_FK(tablePayrollPayStatement) · InnerJoin toPayrollPayStatementEarningLine· read-onlyPosition_FK(tableHcmPosition) · OuterJoin toPayrollPayStatementEarningLine· read-onlyEarningCode_FK(tablePayrollEarningCode) · InnerJoin toPayrollPayStatementEarningLine· read-onlyWorkerCompensationBenefit_FK(tableHcmBenefit) · OuterJoin toPayrollPayStatementEarningLine· read-onlyWorkerGeneralLiabilityInsuranceBenefitFK(tableHcmBenefit) · OuterJoin toPayrollPayStatementEarningLine· read-onlyWorkerTaxRegion_FK(tablePayrollWorkerTaxRegion) · InnerJoin toPayrollPayStatementEarningLine· read-onlyTaxRegion_FK(tablePayrollTaxRegion) · InnerJoin toWorkerTaxRegion_FK· read-onlyLogistics_FK(tableLogisticsLocation) · InnerJoin toTaxRegion_FK· read-onlyWorker_FK(tableHcmWorker) · InnerJoin toWorkerTaxRegion_FK· read-onlyReversedPayStatementLine_FK(tablePayrollPayStatementLine) · OuterJoin toPayrollPayStatementEarningLine· read-onlyPayStatement_FK1(tablePayrollPayStatement) · OuterJoin toReversedPayStatementLine_FK· read-onlyPayrollPayStatementBenefitLine· Derived toReversedPayStatementLine_FKPayrollPayStatementEarningLine1(tablePayrollPayStatementEarningLine) · Derived toReversedPayStatementLine_FKPayrollPayStatementTaxLine· Derived toReversedPayStatementLine_FK
Fields (34)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AmountInTransactionCurrencyAmount of the line. | RealPayrollStatementAccountingCurrencyAmount | Yes | Yes | PayrollPayStatementLine.AccountingCurrencyAmount | |
AccountingDateAccounting date of the line. | DateAccountingDate | Yes | Yes | PayrollPayStatementLine.AccountingDate | |
TemplateIdAccounting distribution template used for the line. | Int64AccountingDistributionTemplateRecId | No | No (private) | AccountingDistributionTemplate.RecId | PayrollPayStatementLine.AccountingDistributionTemplate |
EmployerContributionYes/no flag for an employer contribution. | EnumNoYesId
| No | Yes | PayrollPayStatementLine.IsEmployer | |
LineToRemoveYes/no flag showing the line is to be removed. | EnumNoYesId
| No | Yes | PayrollPayStatementLine.IsMarkedForRemoval | |
LineOverriddenYes/no flag showing the line was overridden and is locked. | EnumNoYesId
| No | Yes | PayrollPayStatementLine.IsPayStatementLineOverridden | |
PayStatementPay statement the line belongs to. | Int64PayrollPayStatementRecId | Yes | No (private) | PayrollPayStatement.RecId | PayrollPayStatementLine.PayStatement |
PositionPosition linked to the line. | Int64HcmPositionRecId | No | No (private) | HcmPosition.RecId | PayrollPayStatementLine.Position |
PayStatementLineSourceWhere the line came from, such as earnings, benefit, tax code or manual entry. | Enum
| No | Yes | PayrollPayStatementLine.Source | |
SourceDocumentLineSource document line linked to this line. | Int64SourceDocumentLineRecId | No | No (private) | SourceDocumentLine.RecId | PayrollPayStatementLine.SourceDocumentLine |
LineNumberLine number. | RealLineNum | Yes | Yes | PayrollPayStatementLine.LineNum | |
CompanyThe company (legal entity) that the record belongs to. | String (4)DataAreaId | Yes | Yes | PayrollPayStatementEarningLine.DataAreaId | |
EarningCodeEarning code applied to the line. | Int64PayrollEarningCodeRecId | Yes | No (private) | PayrollEarningCode.RecId | PayrollPayStatementEarningLine.EarningCode |
EarningsDateDate of the earnings. | DatePayrollPayStatementEarningDate | No | Yes | PayrollPayStatementEarningLine.EarningDate | |
EarningRateRate applied to the earnings. | RealPayrollEarningRate | Yes | Yes | PayrollPayStatementEarningLine.EarningRate | |
QuantityQuantity of earnings, such as hours. | RealPayrollEarningQuantity | Yes | Yes | PayrollPayStatementEarningLine.Quantity | |
WorkerCompensationBenefitBenefit used as the workers' compensation code. | Int64HcmBenefitRecId | No | No (private) | HcmBenefit.RecId | PayrollPayStatementEarningLine.WorkerCompensationBenefit |
GeneralLiabilityInsuranceBenefit used for general liability insurance. | Int64HcmBenefitRecId | No | No (private) | HcmBenefit.RecId | PayrollPayStatementEarningLine.WorkerGeneralLiabilityInsuranceBenefit |
TaxRegionWorker tax region linked to the line. | Int64PayrollWorkerTaxRegionRecId | Yes | No (private) | PayrollWorkerTaxRegion.RecId | PayrollPayStatementEarningLine.WorkerTaxRegion |
AccountingDistributionTemplateIdName that identifies the template. | String (40)TemplateName | No | Yes | AccountingDistributionTemplate.Name | |
AccountingDistributionLegalEntityIdPoints to the legal entity (company) that owns the template. | Int64LegalEntityRecId | Yes | No (private) | CompanyInfo.RecId | AccountingDistributionTemplate.LegalEntity |
AccountingDistributionLegalEntityCompany ID of the legal entity. It is the key. | StringSelectableDataArea | No | Yes | CompanyInfo.DataArea | |
PayStatementNumberUnique number of the pay statement. | String (20)PayrollPayStatementId | Yes | Yes | PayrollPayStatement.DocumentNumber | |
PositionIdCode that identifies the position. | String (25)HcmPositionId | No | Yes | HcmPosition.PositionId | |
EarningCodeIdUnique ID of the earning code. | String (50)PayrollEarningCodeId | Yes | Yes | PayrollEarningCode.EarningCode | |
CompensationBenefitIdShort code that identifies the benefit. | String (20)HcmBenefitId | No | Yes | HcmBenefit.BenefitId | |
GeneralLiabilityInsuranceBenefitIdShort code that identifies the benefit. | String (20)HcmBenefitId | No | Yes | HcmBenefit.BenefitId | |
WorkerTaxRegionPoints to the tax region assigned to the worker. | Int64PayrollTaxRegionRecId | Yes | No (private) | PayrollTaxRegion.RecId | PayrollWorkerTaxRegion.TaxRegion |
TaxRegionLocationIdPoints 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 | |
ReversedPayStatementNumberUnique number of the pay statement. | String (20)PayrollPayStatementId | No | Yes | PayrollPayStatement.DocumentNumber | |
ReversedPayStatementPay statement the line belongs to. | Int64PayrollPayStatementRecId | Yes | No (private) | PayrollPayStatement.RecId | PayrollPayStatementLine.PayStatement |
ReversedPayStatementLineNumLine number. | RealLineNum | No | Yes | PayrollPayStatementLine.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.
TemplateId→AccountingDistributionTemplate.RecId(key of AccountingDistributionTemplate)Many PayrollPayStatementLine records → zero or one AccountingDistributionTemplate record
AccountingDistributionTemplate details: see FinancialDimensionDefaultTemplateEntity, HcmPositionDefaultDimensionDualWriteEntity, HcmPositionDefaultDimensionEntity
PayStatement→PayrollPayStatement.RecId(key of PayrollPayStatement)Many PayrollPayStatementLine records → exactly one PayrollPayStatement record
PayrollPayStatement details: see PayrollPayStatementHeaderEntity, PayrollPayStatementBenefitLineEntity, PayrollPayStatementTaxLineEntity
Position→HcmPosition.RecId(key of HcmPosition)Many PayrollPayStatementLine records → exactly one HcmPosition record
HcmPosition details: see HcmPositionTimelineEntity, HcmJobPositionDualWriteEntity, HcmPositionEntity
SourceDocumentLine→SourceDocumentLine.RecId(key of SourceDocumentLine)Many PayrollPayStatementLine records → exactly one SourceDocumentLine record
SourceDocumentLine details: see SourceDocumentLineBiEntity, SourceDocumentLineCDREntity
EarningCode→PayrollEarningCode.RecId(key of PayrollEarningCode)Many PayrollPayStatementEarningLine records → exactly one PayrollEarningCode record
PayrollEarningCode details: see LeaveTypeEntity, PayrollEarningCodeEntity, BenefitDeductionEntity
WorkerCompensationBenefit→HcmBenefit.RecId(key of HcmBenefit)Many PayrollPayStatementEarningLine records → exactly one HcmBenefit record
HcmBenefit details: see HcmBenefitEligibilityOverrideEntity, HcmBenefitEntity, PayrollBenefitEarningBasisEntity
GeneralLiabilityInsurance→HcmBenefit.RecId(key of HcmBenefit)Many PayrollPayStatementEarningLine records → zero or one HcmBenefit record
HcmBenefit details: see HcmBenefitEligibilityOverrideEntity, HcmBenefitEntity, PayrollBenefitEarningBasisEntity
TaxRegion→PayrollWorkerTaxRegion.RecId(key of PayrollWorkerTaxRegion)Many PayrollPayStatementEarningLine records → exactly one PayrollWorkerTaxRegion record
PayrollWorkerTaxRegion details: see PayrollWorkerTaxRegionEntity, PayrollEarningStatementLineEntity, PayrollPositionWorkerDefaultTaxRgnEntity
AccountingDistributionLegalEntityId→CompanyInfo.RecId(key of CompanyInfo)One or more AccountingDistributionTemplate records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
WorkerTaxRegion→PayrollTaxRegion.RecId(key of PayrollTaxRegion)Many PayrollWorkerTaxRegion records → exactly one PayrollTaxRegion record
PayrollTaxRegion details: see PayrollEarningStatementLineEntity, PayrollPositionWorkerDefaultTaxRgnEntity, PayrollTaxRegionDualWriteEntity
TaxRegionLocationId→LogisticsLocation.RecId(key of LogisticsLocation)Zero or one PayrollTaxRegion record → exactly one LogisticsLocation record
LogisticsLocation details: see AccountantEntity, CustPostalAddressV2Entity, DirPartyLocationPostalAddressEntity
ReversedPayStatement→PayrollPayStatement.RecId(key of PayrollPayStatement)Many PayrollPayStatementLine records → exactly one PayrollPayStatement record
PayrollPayStatement details: see PayrollPayStatementHeaderEntity, PayrollPayStatementBenefitLineEntity, PayrollPayStatementTaxLineEntity
Need help with PayrollPayStatementEarningLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.