ถึงแก่กรรมปั๊มลง leaveDate
This commit is contained in:
parent
76d5f07f08
commit
9121eebcde
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue