ReleaseUpdateDB60_Payroll.updatePayrollWorkerBankAccount

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Class

ReleaseUpdateDB60_Payroll

Method

updatePayrollWorkerBankAccount

Description

Inserts records into the HcmWorkerBankAccount table and the PayrollBankAccountDisbursement table from the DEL_PRLEmplBankAccount table.

Affected Modules and Tables

Affected Modules

Payroll

Affected Tables

DEL_PRLEMPLBANKACCOUNT

DEL_EMPLTABLE

COMPANYINFO

HCMWORKER

PAYROLLBANKACCOUNTDISBURSEMENT

HCMWORKERBANKACCOUNT

Remarks

This upgrade will create records in the HcmWorkerBankAccount table and the PayrollBankAccountDisbursement table from the fields in the DEL_PRLEmplBankAccount table. Records in the HcmWorkerBankAccount table will only be created if one does not already exist for the employee ID and account number combination. If the account number does exist, fields that were not previously initialized will be filled in from the DEL_PRLEmplBankAccount table. The record ID of the new or found HcmWorkerBankAccount table will be used to fill in the WorkerBankAccount field of the record that was added to the PayrollBankAccountDisbursement table.