Data entity

PayrollPayStatementTaxLineEntity

Holds the tax lines on payroll pay statements. Each line is identified by pay statement number and line number. It has an amount in transaction currency, an accounting date, a tax code and an employer contribution flag. It links to the position, the legal entity and the accounting distribution template.

Entity name
PayrollPayStatementTaxLineEntity
Public entity name
PayStatementTaxLine
OData collection
PayStatementTaxLines
Category
Document
Module
Tax
Read-only
No
Data management enabled
Yes
Configuration key
PayrollAdministration
Keys
PayStatementNumber, LineNumber
Staging table
PayrollPayStatementTaxLineStaging

Use it in Power BI and Power Platform

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

  • PayrollPayStatementTaxLine · root
  • AccountingDistributionTemplate_FK (table AccountingDistributionTemplate) · OuterJoin to PayrollPayStatementTaxLine · read-only
  • CompanyInfo · OuterJoin to AccountingDistributionTemplate_FK · read-only
  • PayStatement_FK (table PayrollPayStatement) · OuterJoin to PayrollPayStatementTaxLine · read-only
  • Position_FK (table HcmPosition) · OuterJoin to PayrollPayStatementTaxLine · read-only
  • TaxCode_FK (table PayrollTaxCode) · InnerJoin to PayrollPayStatementTaxLine · read-only
  • ReversedPayStatementLine_FK (table PayrollPayStatementLine) · OuterJoin to PayrollPayStatementTaxLine · read-only
  • PayStatement_FK1 (table PayrollPayStatement) · OuterJoin to ReversedPayStatementLine_FK · read-only
  • ReversedPayStatementLine_FK_PayrollPayStatementBenefitLine (table PayrollPayStatementBenefitLine) · Derived to ReversedPayStatementLine_FK
  • ReversedPayStatementLine_FK_PayrollPayStatementEarningLine (table PayrollPayStatementEarningLine) · Derived to ReversedPayStatementLine_FK
  • ReversedPayStatementLine_FK_PayrollPayStatementTaxLine (table PayrollPayStatementTaxLine) · Derived to ReversedPayStatementLine_FK

Fields (24)

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
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
YesYesPayrollPayStatementTaxLine.DataAreaId
TaxCodeTax code applied to the line.Int64
PayrollTaxCodeRecId
YesNo (private)PayrollTaxCode.RecIdPayrollPayStatementTaxLine.TaxCode
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
ReversedPayStatementPay statement the line belongs to.Int64
PayrollPayStatementRecId
YesNo (private)PayrollPayStatement.RecIdPayrollPayStatementLine.PayStatement
ReversedPayStatementLineNumLine number.Real
LineNum
NoYesPayrollPayStatementLine.LineNum
ReversedPayStatementNumberUnique number of the pay statement.String (20)
PayrollPayStatementId
NoYesPayrollPayStatement.DocumentNumber
TaxCodeIdIdentifier of the payroll tax code.String (70)
PayrollTaxCodeId
YesYesPayrollTaxCode.Code
TaxCodeCountryRegionIdCountry or region that the tax code applies to.String
LogisticsAddressCountryRegionId
YesYesLogisticsAddressCountryRegion.CountryRegionIdPayrollTaxCode.CountryRegionId

Foreign keys (9)

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

Email sales@drdynamics.co.uk