Share via


ReleaseUpdateDB60_Payroll.createEarningCode Method [AX 2012]

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

  • _referenceType
    Type: boolean
    A flag indicates the earning code to be created in this method referenced by a 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

See Also

Reference

ReleaseUpdateDB60_Payroll Class