Data entity

PayrollPayStatementBenefitLineEntity

Benefit lines on pay statements, keyed by pay statement number and line number. Each line has an amount in transaction currency, an accounting date and an employer contribution value. It links to a benefit, a position and an accounting distribution template. It also holds base and premium earning amounts and hours.

Entity name
PayrollPayStatementBenefitLineEntity
Public entity name
PayStatementBenefitLine
OData collection
PayStatementBenefitLines
Category
Not set
Module
Payroll
Read-only
No
Data management enabled
Yes
Configuration key
PayrollAdministration
Keys
PayStatementNumber, LineNumber
Staging table
PayrollPayStatementBenefitLineStaging

Use it in Power BI and Power Platform

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

  • PayrollPayStatementBenefitLine · root
  • AccountingDistributionTemplate_FK (table AccountingDistributionTemplate) · OuterJoin to PayrollPayStatementBenefitLine · read-only
  • CompanyInfo · OuterJoin to AccountingDistributionTemplate_FK · read-only
  • PayStatement_FK (table PayrollPayStatement) · InnerJoin to PayrollPayStatementBenefitLine · read-only
  • Position_FK (table HcmPosition) · OuterJoin to PayrollPayStatementBenefitLine · read-only
  • ReversedPayStatementLine_FK (table PayrollPayStatementLine) · OuterJoin to PayrollPayStatementBenefitLine · read-only
  • PayStatement_FK1 (table PayrollPayStatement) · OuterJoin to ReversedPayStatementLine_FK · read-only
  • PayrollPayStatementBenefitLine1 (table PayrollPayStatementBenefitLine) · Derived to ReversedPayStatementLine_FK
  • PayrollPayStatementEarningLine · Derived to ReversedPayStatementLine_FK
  • PayrollPayStatementTaxLine · Derived to ReversedPayStatementLine_FK
  • Benefit_FK (table HcmBenefit) · InnerJoin to PayrollPayStatementBenefitLine · read-only

Fields (28)

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
LineLockedYes/no flag showing the line is locked.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPayrollPayStatementLine.IsLineLocked
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
ReversedPayStatementLinePay statement line that this one reverses.Int64
PayrollPayStatementLineRecId
NoNo (private)PayrollPayStatementLine.RecIdPayrollPayStatementLine.ReversedPayStatementLine
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
NoYesPayrollPayStatementLine.LineNum
CompanyThe company (legal entity) that the record belongs to.String (4)
DataAreaId
YesYesPayrollPayStatementBenefitLine.DataAreaId
BaseEarningAmountBase earning amount.Real
PayrollStatementAccountingCurrencyAmount
NoYesPayrollPayStatementBenefitLine.BaseTimeEarningBaseAmount
BaseEarningHoursBase earning hours.Real
PayrollEarningQuantity
NoYesPayrollPayStatementBenefitLine.BaseTimeEarningBaseHours
BenefitBenefit the line refers to.Int64
HcmBenefitRecId
YesNo (private)HcmBenefit.RecIdPayrollPayStatementBenefitLine.Benefit
PremiumEarningAmountPremium earning amount.Real
PayrollStatementAccountingCurrencyAmount
NoYesPayrollPayStatementBenefitLine.PremiumEarningBaseAmount
PremiumEarningHoursPremium earning hours.Real
PayrollEarningQuantity
NoYesPayrollPayStatementBenefitLine.PremiumEarningBaseHours
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
BenefitIdShort code that identifies the benefit.String (20)
HcmBenefitId
YesYesHcmBenefit.BenefitId
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 (8)

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

Email sales@drdynamics.co.uk