From 05e56ba91fcb9d3fa89ca7cb55fcc05902657514 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 4 Dec 2024 13:37:22 +0700 Subject: [PATCH] fix posLevel undefined --- src/controllers/ReportController.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index e8d8214..1fa2f21 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -7075,6 +7075,7 @@ export class ReportController extends Controller { "salaryProfileEmployee.posMasterNo", "salaryProfileEmployee.position", "salaryProfileEmployee.posType", + "salaryProfileEmployee.posTypeShort", "salaryProfileEmployee.posLevel", "salaryProfileEmployee.profileId", "salaryProfileEmployee.prefix", @@ -7089,7 +7090,7 @@ export class ReportController extends Controller { posMasterNo: `${item.orgShortName}${item.posMasterNo}`, positionName: item.position, posType: item.posType, - posLevel: `${item.posTypeShort}${item.posLevel}`, + posLevel: `${item.posTypeShort ?? ""} ${item.posLevel ?? ""}`, profileId: item.profileId, prefix: item.prefix, firstName: item.firstName, @@ -7161,6 +7162,7 @@ export class ReportController extends Controller { "salaryProfileEmployee.posMasterNo", "salaryProfileEmployee.position", "salaryProfileEmployee.posType", + "salaryProfileEmployee.posTypeShort", "salaryProfileEmployee.posLevel", "salaryProfileEmployee.profileId", "salaryProfileEmployee.prefix", @@ -7175,7 +7177,7 @@ export class ReportController extends Controller { posMasterNo: `${item.orgShortName}${item.posMasterNo}`, positionName: item.position, posType: item.posType, - posLevel: `${item.posTypeShort}${item.posLevel}`, + posLevel: `${item.posTypeShort ?? ""} ${item.posLevel ?? ""}`, profileId: item.profileId, prefix: item.prefix, firstName: item.firstName,