Table

PayrollEarningExternalReporting

Earning external reporting

Holds external reporting settings for an earning code, by country or region and by validity period. It stores the Form W-2 box label and box number, which relate to the United States.

Table name
PayrollEarningExternalReporting
Module
Cross-module and platform
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
PayrollAdministration
Primary index
None
Replacement key
EarningExternalReporting_AK1
Key fields
EarningCode, CountryRegionId, ValidFrom, ValidTo
Model
PersonnelManagement

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
EarningCodePoints to the earning code that this reporting setting is for.Int64
PayrollEarningCodeRecId
YesPayrollEarningCode.RecIdNone
CountryRegionIdThe country or region that this reporting setting applies to.String
LogisticsAddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdNone
ValidFromFirst date on which this record is valid.Date
ValidFromDate
NoNone
ValidToLast date on which this record is valid.Date
ValidToDate
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
W2BoxLabelText label shown for the Form W-2 box.String
PayrollW2BoxLabel
NoNone
W2BoxNumberThe Form W-2 box number, chosen from a short list of values such as 10, 11, 12 or 14.Enum
PayrollW2BoxNumber (enum)
NoNone

Indexes (1)

Relations (2)

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

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on CountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many PayrollEarningExternalReporting records → exactly one LogisticsAddressCountryRegion record

  • PayrollEarningCode → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many PayrollEarningExternalReporting records → exactly one PayrollEarningCode record

Get this data out

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

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

Email sales@drdynamics.co.uk