query add type RetirementDeceased

This commit is contained in:
kittapath 2025-01-17 11:10:04 +07:00
parent 4dcaa92f63
commit bf4d551f40
4 changed files with 10 additions and 4 deletions

View file

@ -205,7 +205,7 @@ export class ProfileGovernmentEmployeeTempController extends Controller {
posLevel:
record.posLevel == null
? null
: `${record.posType.posTypeShortName}${record.posLevel.posLevelName}`, //ระดับ
: `${record?.posType?.posTypeShortName ?? ""} ${record?.posLevel?.posLevelName ?? ""}`, //ระดับ
posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง
posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท
dateLeave: record.birthDate == null ? null : calculateRetireDate(record.birthDate), //วันเกษียณ