diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index d5d33b3b..1703ea7a 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -2170,6 +2170,8 @@ export class CommandController extends Controller { refCommandNo: string | null; templateDoc: string | null; commandId?: string | null; + leaveReason?: string | null; + dateLeave?: Date | null; isLeave?: boolean; }[]; }, @@ -2210,6 +2212,8 @@ export class CommandController extends Controller { profile.position = _null; profile.posTypeId = _null; profile.posLevelId = _null; + profile.leaveReason = item.leaveReason ?? _null; + profile.dateLeave = item.dateLeave ?? _null; await this.profileRepository.save(profile, { data: req }); } Object.assign(data, { ...item, ...meta });