Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s

This commit is contained in:
Adisak 2025-11-13 11:50:02 +07:00
commit cd3bcac5f8

View file

@ -4341,9 +4341,11 @@ export class CommandController extends Controller {
createdAt: new Date(),
lastUpdatedAt: new Date(),
};
if (item.isLeave != undefined && item.isLeave == true) {
if (orgRevisionRef && item.isLeave == true){
console.log("profile.current_holders.id>>>",orgRevisionRef.id);
await CreatePosMasterHistoryOfficer(orgRevisionRef.id, req, "DELETE");
}
if (item.isLeave != undefined && item.isLeave == true) {
console.log("profile.id>>>",profile.id);
await removeProfileInOrganize(profile.id, "OFFICER");
}