update save position history
This commit is contained in:
parent
9a40e455c6
commit
e2332d49df
1 changed files with 4 additions and 1 deletions
|
|
@ -3601,7 +3601,7 @@ export class CommandController extends Controller {
|
||||||
positionNew.positionIsSelected = true;
|
positionNew.positionIsSelected = true;
|
||||||
await this.positionRepository.save(positionNew, { data: req });
|
await this.positionRepository.save(positionNew, { data: req });
|
||||||
}
|
}
|
||||||
await CreatePosMasterHistoryOfficer(posMaster.id, req);
|
// await CreatePosMasterHistoryOfficer(posMaster.id, req);
|
||||||
}
|
}
|
||||||
const newMapProfileSalary = {
|
const newMapProfileSalary = {
|
||||||
profileId: profile.id,
|
profileId: profile.id,
|
||||||
|
|
@ -3706,6 +3706,9 @@ export class CommandController extends Controller {
|
||||||
profile.isActive = true;
|
profile.isActive = true;
|
||||||
}
|
}
|
||||||
await this.profileRepository.save(profile);
|
await this.profileRepository.save(profile);
|
||||||
|
if (item.posmasterId && clearProfile.LeaveType != "RETIRE_OUT_EMP") {
|
||||||
|
await CreatePosMasterHistoryOfficer(item.posmasterId, req);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue