From 4be044116bab7b46f4e37233a3e52537e4132b41 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 14 May 2025 15:54:14 +0700 Subject: [PATCH] add posTypeShortName --- src/controllers/OrganizationDotnetController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index d46daded..05e9f697 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -1391,7 +1391,9 @@ export class OrganizationDotnetController extends Controller { x.orgRevision?.orgRevisionIsCurrent == true, )?.orgChild4?.ancestorDNA ?? null, commander: fullname, - posLevel: profile.posLevel?.posLevelName ?? null, + posLevel: profile.posType?.posTypeShortName && profile.posLevel?.posLevelName + ? `${profile.posType.posTypeShortName} ${profile.posLevel.posLevelName}` + : profile.posType?.posTypeShortName || profile.posLevel?.posLevelName || "", posType: profile.posType?.posTypeName ?? null, profileSalary: profile.profileSalary.length > 0 ? profile.profileSalary[0] : null, profileInsignia: profile.profileInsignias.length > 0 ? profile.profileInsignias[0] : null,