Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a record in the PayrollEarningCode table and its related entities from a single record in the DEL_PRLPayElements table with the value of the PayElementType field equal to "Earnings".
Syntax
private PayrollEarningCode createEarningCode(
DEL_PRLPayElements _payElements,
[boolean _referenceType,
PayrollFringeBenefitType _referencefringeBenefitType])
Run On
Server
Parameters
- _payElements
Type: DEL_PRLPayElements Table
A record in the DEL_PRLPayElements table to be upgraded.
- _referenceType
Type: boolean
A flag indicates the earning code to be created in this method referenced by a gross-up earning code.
- _referencefringeBenefitType
Type: PayrollFringeBenefitType Enumeration
The value of the FringeBenefitType field of the gross-up earning code.
Return Value
Type: PayrollEarningCode Table
A record in the PayrollEarningCode table created in this method.
Remarks
This method processes one record in the DEL_PRLPayElements table.
For the gross-up earning code and the earning code referenced from gross-up type earning code, the values of some of the fields in the earning code need to be set as following: Set the value of the FringeBenefitType field to the same value of the gross-up earning code Set the value of the IncludeInPaymentType field to PayrollIncludeInPaymentType::Auto Set the value of the QuantityUnit field to PayrollQuantityUnit::Each Set the value of the TaxMethod field to PayrollTaxMethod::Exempt