diff --git a/HRM.UI/ClientApp/src/app/core-hr/employee-profile/nominee/nominee-list/nominee-list.component.ts b/HRM.UI/ClientApp/src/app/core-hr/employee-profile/nominee/nominee-list/nominee-list.component.ts index 43b5f2d..a2ef174 100644 --- a/HRM.UI/ClientApp/src/app/core-hr/employee-profile/nominee/nominee-list/nominee-list.component.ts +++ b/HRM.UI/ClientApp/src/app/core-hr/employee-profile/nominee/nominee-list/nominee-list.component.ts @@ -92,6 +92,9 @@ export class NomineeListComponent implements OnInit { notApli = this.occupations.find(o => o.description.toUpperCase() == 'N/A'); if (notApli != null) this.nominee.occupationID = notApli.id; + let np = this.nominationPurposes.find(n => n.id == 8); + if(this.nominationPurposes != null && np != null) + this.nominee.nominationPurposeID = np.id; this.isDisplay = true; } public editHandler(rowIndex: any) { diff --git a/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.ts b/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.ts index 6ebd5f5..65f6fbf 100644 --- a/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.ts +++ b/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.ts @@ -419,7 +419,7 @@ export class EmployeePayrollProfileComponent implements OnInit { this.selectedEmployee.categoryID = this.employee.categoryID; this.selectedEmployee.name = this.employee.name; this.selectedEmployee.employeeNo = this.employee.employeeNo; - this.showBankAccount = true; + // this.showBankAccount = true; } else { this.employee = new Employee();