This commit is contained in:
parent
09fd606b86
commit
cf3ef00b7f
2 changed files with 28 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ import { ProfileAssistance } from "../entities/ProfileAssistance";
|
|||
import { ProfileChangeName } from "../entities/ProfileChangeName";
|
||||
import { ProfileChildren } from "../entities/ProfileChildren";
|
||||
import { ProfileDuty } from "../entities/ProfileDuty";
|
||||
import { getTopDegrees } from "../services/PositionService";
|
||||
import { CreatePosMasterHistoryEmployee, getTopDegrees } from "../services/PositionService";
|
||||
import { ProfileLeaveService } from "../services/ProfileLeaveService";
|
||||
import { PostRetireToExprofile } from "./ExRetirementController";
|
||||
import { CommandCode } from "../entities/CommandCode";
|
||||
|
|
@ -5778,6 +5778,9 @@ export class ProfileEmployeeController extends Controller {
|
|||
}
|
||||
await this.profileRepo.save(profile);
|
||||
if (requestBody.isLeave == true) {
|
||||
if (orgRevisionRef) {
|
||||
await CreatePosMasterHistoryEmployee(orgRevisionRef.id, request);
|
||||
}
|
||||
await removeProfileInOrganize(profile.id, "EMPLOYEE");
|
||||
}
|
||||
let organizeName = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue