update save position history

This commit is contained in:
AdisakKanthawilang 2025-09-04 15:53:19 +07:00
parent 9a40e455c6
commit e2332d49df

View file

@ -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);
}
}), }),
); );