diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 9bdb33ff..22abc1de 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -10297,6 +10297,7 @@ export class ProfileController extends Controller { profile.isLeave = requestBody.isLeave; profile.leaveReason = requestBody.leaveReason; profile.dateLeave = requestBody.dateLeave; + profile.leaveDate = requestBody.dateLeave; profile.leaveType = "RETIRE_DECEASED"; // profile.position = _null; // profile.posLevelId = _null; diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 9331c1a2..00a04ca2 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -5702,6 +5702,8 @@ export class ProfileEmployeeController extends Controller { profile.isLeave = requestBody.isLeave; profile.leaveReason = requestBody.leaveReason; profile.dateLeave = requestBody.dateLeave; + profile.leaveDate = requestBody.dateLeave; + profile.leaveType = "RETIRE_DECEASED"; // profile.position = _null; // profile.posLevelId = _null; // profile.posTypeId = _null; @@ -5713,7 +5715,6 @@ export class ProfileEmployeeController extends Controller { profile.isActive = false; } } - profile.leaveType = "RETIRE_DECEASED"; await this.profileRepo.save(profile); if (requestBody.isLeave == true) { await removeProfileInOrganize(profile.id, "EMPLOYEE");