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· rootAccountingDistributionTemplate_FK(tableAccountingDistributionTemplate) · OuterJoin toPayrollPayStatementTaxLine· read-onlyCompanyInfo· OuterJoin toAccountingDistributionTemplate_FK· read-onlyPayStatement_FK(tablePayrollPayStatement) · OuterJoin toPayrollPayStatementTaxLine· read-onlyPosition_FK(tableHcmPosition) · OuterJoin toPayrollPayStatementTaxLine· read-onlyTaxCode_FK(tablePayrollTaxCode) · InnerJoin toPayrollPayStatementTaxLine· read-onlyReversedPayStatementLine_FK(tablePayrollPayStatementLine) · OuterJoin toPayrollPayStatementTaxLine· read-onlyPayStatement_FK1(tablePayrollPayStatement) · OuterJoin toReversedPayStatementLine_FK· read-onlyReversedPayStatementLine_FK_PayrollPayStatementBenefitLine(tablePayrollPayStatementBenefitLine) · Derived toReversedPayStatementLine_FKReversedPayStatementLine_FK_PayrollPayStatementEarningLine(tablePayrollPayStatementEarningLine) · Derived toReversedPayStatementLine_FKReversedPayStatementLine_FK_PayrollPayStatementTaxLine(tablePayrollPayStatementTaxLine) · Derived toReversedPayStatementLine_FK
Fields (24)
| 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 |
ReversedPayStatementLinePay statement line that this one reverses. | Int64PayrollPayStatementLineRecId | No | No (private) | PayrollPayStatementLine.RecId | PayrollPayStatementLine.ReversedPayStatementLine |
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 | No | Yes | PayrollPayStatementLine.LineNum | |
CompanyThe company (legal entity) that the record belongs to. | String (4)DataAreaId | Yes | Yes | PayrollPayStatementTaxLine.DataAreaId | |
TaxCodeTax code applied to the line. | Int64PayrollTaxCodeRecId | Yes | No (private) | PayrollTaxCode.RecId | PayrollPayStatementTaxLine.TaxCode |
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 | |
ReversedPayStatementPay statement the line belongs to. | Int64PayrollPayStatementRecId | Yes | No (private) | PayrollPayStatement.RecId | PayrollPayStatementLine.PayStatement |
ReversedPayStatementLineNumLine number. | RealLineNum | No | Yes | PayrollPayStatementLine.LineNum | |
ReversedPayStatementNumberUnique number of the pay statement. | String (20)PayrollPayStatementId | No | Yes | PayrollPayStatement.DocumentNumber | |
TaxCodeIdIdentifier of the payroll tax code. | String (70)PayrollTaxCodeId | Yes | Yes | PayrollTaxCode.Code | |
TaxCodeCountryRegionIdCountry or region that the tax code applies to. | StringLogisticsAddressCountryRegionId | Yes | Yes | LogisticsAddressCountryRegion.CountryRegionId | PayrollTaxCode.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.
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, PayrollPayStatementEarningLineEntity
Position→HcmPosition.RecId(key of HcmPosition)Many PayrollPayStatementLine records → exactly one HcmPosition record
HcmPosition details: see HcmPositionTimelineEntity, HcmJobPositionDualWriteEntity, HcmPositionEntity
ReversedPayStatementLine→PayrollPayStatementLine.RecId(key of PayrollPayStatementLine)Zero or one PayrollPayStatementLine record → exactly one PayrollPayStatementLine record
PayrollPayStatementLine details: see PayrollPayStatementBenefitLineEntity, PayrollPayStatementEarningLineEntity, PayrollPayStatementBenefitLineInquiryEntity
SourceDocumentLine→SourceDocumentLine.RecId(key of SourceDocumentLine)Many PayrollPayStatementLine records → exactly one SourceDocumentLine record
SourceDocumentLine details: see SourceDocumentLineBiEntity, SourceDocumentLineCDREntity
TaxCode→PayrollTaxCode.RecId(key of PayrollTaxCode)Many PayrollPayStatementTaxLine records → exactly one PayrollTaxCode record
PayrollTaxCode details: see PayrollWorkerTaxCodeParameterEntity, PayrollUSTaxTransactionHistorySummaryEntity, HcmTotalCompStatementSectionTaxEntity
AccountingDistributionLegalEntityId→CompanyInfo.RecId(key of CompanyInfo)One or more AccountingDistributionTemplate records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
ReversedPayStatement→PayrollPayStatement.RecId(key of PayrollPayStatement)Many PayrollPayStatementLine records → exactly one PayrollPayStatement record
PayrollPayStatement details: see PayrollPayStatementHeaderEntity, PayrollPayStatementBenefitLineEntity, PayrollPayStatementEarningLineEntity
TaxCodeCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many PayrollTaxCode records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
Need help with PayrollPayStatementTaxLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.