เพิ่มแสดงเหตุผลการพ้นจากราชการในทะเบียนประวัติ #1240

This commit is contained in:
Bright 2025-01-27 17:50:21 +07:00
parent 03a7b45aa3
commit b2c8bdecf3
4 changed files with 90 additions and 10 deletions

View file

@ -3871,6 +3871,7 @@ export class ProfileEmployeeController extends Controller {
if (requestBody.isLeave == true) {
await removeProfileInOrganize(profile.id, "EMPLOYEE");
}
profile.leaveType = "RETIRE_DECEASED";
await this.profileRepo.save(profile);
return new HttpSuccess();