default set in nominee

This commit is contained in:
mashfiq 2025-02-26 12:41:11 +06:00
parent 2547d6209e
commit a3c8a22703
2 changed files with 4 additions and 1 deletions

View File

@ -92,6 +92,9 @@ export class NomineeListComponent implements OnInit {
notApli = this.occupations.find(o => o.description.toUpperCase() == 'N/A'); notApli = this.occupations.find(o => o.description.toUpperCase() == 'N/A');
if (notApli != null) if (notApli != null)
this.nominee.occupationID = notApli.id; 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; this.isDisplay = true;
} }
public editHandler(rowIndex: any) { public editHandler(rowIndex: any) {

View File

@ -419,7 +419,7 @@ export class EmployeePayrollProfileComponent implements OnInit {
this.selectedEmployee.categoryID = this.employee.categoryID; this.selectedEmployee.categoryID = this.employee.categoryID;
this.selectedEmployee.name = this.employee.name; this.selectedEmployee.name = this.employee.name;
this.selectedEmployee.employeeNo = this.employee.employeeNo; this.selectedEmployee.employeeNo = this.employee.employeeNo;
this.showBankAccount = true; // this.showBankAccount = true;
} else { } else {
this.employee = new Employee(); this.employee = new Employee();