Table

PayrollEarningCode

Earning code

Holds earning codes, identified by an earning code ID with a description. Settings include the unit of measure, tax method, fringe benefit type, payment run type and base definition. Some fields point to other earning codes (gross up, retroactive), an earning code group and a tax group.

Table name
PayrollEarningCode
Module
Cross-module and platform
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
HRMAdministrationPayrollInfo
Primary index
None
Replacement key
EarningCode_AK1
Key fields
EarningCode
Model
PersonnelManagement

Fields (22)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
EarningCodeUnique ID of the earning code.String (50)
PayrollEarningCodeId
YesPayrollEarningCodeEntityPayrollEarningCodeEntityPayrollEarningCodeEntityand 20 more
BaseDefinitionBase definition for the earning: not applicable, base time, time and a half or double time.Enum
PayrollBaseDefinition (enum)
NoPayrollEarningCodeEntity
BasisEarningGroupEarning code group used as the basis, pointing to an earning code group record.Int64
PayrollEarningCodeGroupRecId
NoPayrollEarningCodeGroup.RecIdPayrollEarningCodeEntity
DescriptionShort text describing the earning code.String (60)
PayrollEarningCodeDescription
YesPayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntityPayrollPayStatementEarningLineInquiryEntity
FringeBenefitTypeType of fringe benefit: not applicable, standard or group term life.Enum
PayrollFringeBenefitType (enum)
YesPayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntity
GrossUpEarningCodeAnother earning code used for gross up, pointing to an earning code record.Int64
PayrollEarningCodeRecId
NoPayrollEarningCode.RecIdPayrollEarningCodeEntity
IncludeInPaymentTypePayment run type the earning is included in, such as primary, additional, gross up or automatic.Enum
PayrollIncludeInPaymentType (enum)
YesPayrollEarningCodeEntity
IsBaseEarningsComponentYes/no flag showing whether the earning is a base earnings component.Enum
NoYesId
NoYes (enum)
YesPayrollEarningCodeEntity
IsEarningStatementLineRateEditableYes/no flag showing whether rates on earning statement lines can be edited.Enum
NoYesId
NoYes (enum)
NoPayrollEarningCodeEntity
IsProductiveYes/no flag showing whether the earning is productive.Enum
NoYesId
NoYes (enum)
YesPayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntity
IsRetroactiveYes/no flag showing whether this is a retroactive earning.Enum
NoYesId
NoYes (enum)
NoPayrollEarningCodeEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuantityUnitUnit used to measure the earning: hours, pieces or each.Enum
PayrollQuantityUnit (enum)
YesPayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoLeaveTypeEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RetroactiveEarningCodeEarning code used for retroactive earnings, pointing to an earning code record.Int64
PayrollEarningCodeRecId
NoPayrollEarningCode.RecIdPayrollEarningCodeEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupTax group assigned to the earning code, pointing to a tax group record.Int64
PayrollTaxGroupRecId
NoPayrollTaxGroup.RecIdPayrollEarningCodeEntity
TaxMethodTax method for the earning: regular, supplemental, exempt or custom.Enum
PayrollTaxMethod (enum)
YesPayrollEarningCodeEntity
TrackFMLAHoursYes/no flag showing whether this earning reduces the remaining FMLA time.Enum
NoYes (enum)
NoPayrollEarningCodeEntity

Indexes (2)

Relations (4)

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

  • GrossUpEarningCode → PayrollEarningCode

    Join on GrossUpEarningCode = PayrollEarningCode.RecId

    Many PayrollEarningCode records → zero or one PayrollEarningCode record

  • EarningCodeGroup → PayrollEarningCodeGroup

    Join on BasisEarningGroup = PayrollEarningCodeGroup.RecId

    Many PayrollEarningCode records → zero or one PayrollEarningCodeGroup record

  • RetroactiveEarningCode → PayrollEarningCode

    Join on RetroactiveEarningCode = PayrollEarningCode.RecId

    Many PayrollEarningCode records → zero or one PayrollEarningCode record

  • TaxGroup → PayrollTaxGroup

    Join on TaxGroup = PayrollTaxGroup.RecId

    Many PayrollEarningCode records → exactly one PayrollTaxGroup record

Get this data out

Tables are not exposed directly. These public entities read from PayrollEarningCode; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk