Share via


ReleaseUpdateDB60_Payroll.updatePayrollEarningCode Method [AX 2012]

Inserts records into the PayrollEarningCode table, the PayrollEarningCodeDetail table, and the PayrollEarningExternalReporting_US table from the PRLPayElements table.

Inserts records into the PayrollEarningCodeAccountingRule table from the PRLPostingSetupDetails table.

Inserts records to the PayrollGrossUpEarningCodeReference table for grossup earning codes.

Syntax

public void updatePayrollEarningCode()

Run On

Server

Remarks

The records in the PRLPayElements table with DEL_PRLPayElementType::Earning in the PaymentType field need to be upgraded into the PayrollEarningCode table and the PayrollEarningCodeDetail table.

The W2 related fields BoxLetter and BoxNumber are upgraded to the PayrollEarningExternalReporting_US table.

For grossup earning code, a record in the PayrollGrossUpEarningCodeReference table should be created to reflect the relationship between the grossup earning code and the secondary earning code.

Creates records in the PayrollEarningCodeAccountingRule from the PRLPostingSetupDetails table for the PRLPayElement table records with earning type.

See Also

Reference

ReleaseUpdateDB60_Payroll Class