add posTypeShortName

This commit is contained in:
AdisakKanthawilang 2025-05-14 15:54:14 +07:00
parent f015ea6015
commit 4be044116b

View file

@ -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,