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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
EarningCodeUnique ID of the earning code. | String (50)PayrollEarningCodeId | Yes | PayrollEarningCodeEntityPayrollEarningCodeEntityPayrollEarningCodeEntityand 20 more | |
BaseDefinitionBase definition for the earning: not applicable, base time, time and a half or double time. | EnumPayrollBaseDefinition (enum) | No | PayrollEarningCodeEntity | |
BasisEarningGroupEarning code group used as the basis, pointing to an earning code group record. | Int64PayrollEarningCodeGroupRecId | No | PayrollEarningCodeGroup.RecId | PayrollEarningCodeEntity |
DescriptionShort text describing the earning code. | String (60)PayrollEarningCodeDescription | Yes | PayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntityPayrollPayStatementEarningLineInquiryEntity | |
FringeBenefitTypeType of fringe benefit: not applicable, standard or group term life. | EnumPayrollFringeBenefitType (enum) | Yes | PayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntity | |
GrossUpEarningCodeAnother earning code used for gross up, pointing to an earning code record. | Int64PayrollEarningCodeRecId | No | PayrollEarningCode.RecId | PayrollEarningCodeEntity |
IncludeInPaymentTypePayment run type the earning is included in, such as primary, additional, gross up or automatic. | EnumPayrollIncludeInPaymentType (enum) | Yes | PayrollEarningCodeEntity | |
IsBaseEarningsComponentYes/no flag showing whether the earning is a base earnings component. | EnumNoYesIdNoYes (enum) | Yes | PayrollEarningCodeEntity | |
IsEarningStatementLineRateEditableYes/no flag showing whether rates on earning statement lines can be edited. | EnumNoYesIdNoYes (enum) | No | PayrollEarningCodeEntity | |
IsProductiveYes/no flag showing whether the earning is productive. | EnumNoYesIdNoYes (enum) | Yes | PayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntity | |
IsRetroactiveYes/no flag showing whether this is a retroactive earning. | EnumNoYesIdNoYes (enum) | No | PayrollEarningCodeEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QuantityUnitUnit used to measure the earning: hours, pieces or each. | EnumPayrollQuantityUnit (enum) | Yes | PayrollEarningCodeEntityPayrollEarningStatementLineInquiryEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | LeaveTypeEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RetroactiveEarningCodeEarning code used for retroactive earnings, pointing to an earning code record. | Int64PayrollEarningCodeRecId | No | PayrollEarningCode.RecId | PayrollEarningCodeEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupTax group assigned to the earning code, pointing to a tax group record. | Int64PayrollTaxGroupRecId | No | PayrollTaxGroup.RecId | PayrollEarningCodeEntity |
TaxMethodTax method for the earning: regular, supplemental, exempt or custom. | EnumPayrollTaxMethod (enum) | Yes | PayrollEarningCodeEntity | |
TrackFMLAHoursYes/no flag showing whether this earning reduces the remaining FMLA time. | EnumNoYes (enum) | No | PayrollEarningCodeEntity |
Indexes (2)
EarningCode_AK1Replacement keyUnique, alternate key.
PayrollEarningCodeIdxNot unique.
Relations (4)
Each relation joins PayrollEarningCode to another table on the fields shown.
GrossUpEarningCode→PayrollEarningCodeJoin on
GrossUpEarningCode = PayrollEarningCode.RecIdMany PayrollEarningCode records → zero or one PayrollEarningCode record
EarningCodeGroup→PayrollEarningCodeGroupJoin on
BasisEarningGroup = PayrollEarningCodeGroup.RecIdMany PayrollEarningCode records → zero or one PayrollEarningCodeGroup record
RetroactiveEarningCode→PayrollEarningCodeJoin on
RetroactiveEarningCode = PayrollEarningCode.RecIdMany PayrollEarningCode records → zero or one PayrollEarningCode record
TaxGroup→PayrollTaxGroupJoin on
TaxGroup = PayrollTaxGroup.RecIdMany 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.
PayrollEarningCodeEntity· 18 fields from this tableHcmPositionV2Entity· 1 field from this tablePayrollWorkerPositionEarningCodeV2Entity· 1 field from this tableBenefitDeductionEntity· 2 fields from this tableHcmPositionEntity· 1 field from this tableHcmTotalCompStatementSectionEarningEntity· 1 field from this tableLeaveBuySellPolicyBuyTierEntity· 1 field from this tableLeaveBuySellPolicySellTierEntity· 1 field from this tableLeaveTypeEntity· 2 fields from this tablePayrollAccrualBasisEarningCodeEntity· 1 field from this tablePayrollAccrualEarningCodeEntity· 1 field from this tablePayrollBenefitEarningBasisEntity· 1 field from this tablePayrollDisposableIncomeEarningEntity· 1 field from this tablePayrollPayStatementEarningLineEntity· 1 field from this tablePayrollPositionDetailsEntity· 1 field from this tablePayrollPremiumEarningCodeEntity· 1 field from this tablePayrollWorkerPositionEarningCodeEntity· 1 field from this tablePayrollEarningStatementLineEntity· 1 field from this tablePayrollEarningStatementLineInquiryEntity· 5 fields from this tablePayrollPayStatementEarningLineInquiryEntity· 2 fields from this table
Need help with PayrollEarningCode in a report, an integration or a migration? Talk to Dr Dynamics.