Table

PayrollTaxCodeDetail

Tax code details

Holds details of a payroll tax code for a legal entity and a validity period. It stores the account ID, rate, wage base and a report description.

Table name
PayrollTaxCodeDetail
Module
Cross-module and platform
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
PayrollAdministration
Primary index
None
Replacement key
PayrollTaxCodeDetail_AK1
Key fields
PayrollTaxCode, LegalEntity, ValidFrom, ValidTo
Model
PersonnelManagement

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PayrollTaxCodePoints to the tax code that these details belong to.Int64
PayrollTaxCodeRecId
NoPayrollTaxCode.RecIdNone
LegalEntityPoints to the legal entity that these details apply to.Int64
CompanyInfoRecId
YesCompanyInfo.RecIdNone
ValidFromFirst date on which this record is valid.Date
ValidFromDate
NoNone
ValidToLast date on which this record is valid.Date
ValidToDate
NoNone
AccountNumberAccount ID linked to the tax code.String (20)
AccountNum
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
ExcludePriorStateWagesYes or no choice for whether prior state wages are excluded.Enum
NoYesId
NoYes (enum)
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RateThe rate for the tax code.Real
PayrollRate
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReportDescriptionShort text used to describe the tax code in reports.String (60)
Description
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WageBaseThe wage base for the tax code.Real
PayrollWageBase
NoNone

Indexes (1)

Relations (2)

Each relation joins PayrollTaxCodeDetail to another table on the fields shown.

  • CompanyInfo_FK → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many PayrollTaxCodeDetail records → exactly one CompanyInfo record

  • TaxCode_FK → PayrollTaxCode

    Join on PayrollTaxCode = PayrollTaxCode.RecId

    Many PayrollTaxCodeDetail records → exactly one PayrollTaxCode record

Get this data out

No public entity reads from PayrollTaxCodeDetail. Its data is only reachable through the application, a custom entity or a database export.

Need help with PayrollTaxCodeDetail in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk