From 686151584393456aa1a81d11872624e537aa808d Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 23 Jan 2025 16:45:51 +0700 Subject: [PATCH] fix --- src/controllers/ReportController.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index f22f26c..05929bd 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -4780,14 +4780,14 @@ export class ReportController extends Controller { no: Extension.ToThaiNumber((index + 1).toLocaleString()), fullName: fullName, affiliation: affiliation, - position: profile.position, - posLevel: profile.posLevel, - posNumber: + position: profile.position??"-", + posLevel: profile.posLevel? Extension.ToThaiNumber(profile.posLevel.toLocaleString()):"-", + posNumber: profile.orgShortName || profile.posMasterNo ? Extension.ToThaiNumber(profile.orgShortName) + - Extension.ToThaiNumber(profile.posMasterNo.toLocaleString()), - amount: profile.amount ? Extension.ToThaiNumber(profile.amount.toLocaleString()) : null, + Extension.ToThaiNumber(profile.posMasterNo.toLocaleString()):"-", + amount: profile.amount ? Extension.ToThaiNumber(profile.amount.toLocaleString()) : "-", reason: null, - score: profile.result, + score: profile.result??"-", signature: profile.remark, }; });