Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
0f7edf5d15
2 changed files with 4 additions and 4 deletions
|
|
@ -124,7 +124,7 @@ export class OrgChild1Controller {
|
|||
},
|
||||
});
|
||||
if (chkCode != null) {
|
||||
throw new HttpError(HttpStatusCode.INTERNAL_SERVER_ERROR, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
|
||||
throw new HttpError(HttpStatusCode.INTERNAL_SERVER_ERROR, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
|
||||
}
|
||||
const order: any = await this.child1Repository.findOne({
|
||||
where: {
|
||||
|
|
@ -202,7 +202,7 @@ export class OrgChild1Controller {
|
|||
},
|
||||
});
|
||||
if (chkCode != null) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
|
||||
}
|
||||
child1.lastUpdateUserId = request.user.sub;
|
||||
child1.lastUpdateFullName = request.user.name;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export function calculateRetireDate(birthDate: Date) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (flag) return new Date(`${yy + 60}-09-30T00:00:00.000Z`);
|
||||
if (flag) return new Date(`${yy + 60}-09-30T00:00:00.000+07:00`);
|
||||
|
||||
return new Date(`${yy + 61}-09-30T00:00:00.000Z`);
|
||||
return new Date(`${yy + 61}-09-30T00:00:00.000+07:00`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue