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, }; });