From dbb43f596947111ea668637061cae9a732534b4c Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 11 Jul 2025 14:23:54 +0700 Subject: [PATCH] revert --- src/controllers/ReportController.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index f60a72b..c05ac1c 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -375,15 +375,12 @@ export class ReportController extends Controller { const affiliation = fullNameParts .filter((part) => part !== undefined && part !== null) .join("\n"); - - const _org = affiliation.replace(/\n/g, String.fromCharCode(10)); // → ใช้ CHAR(10) - + const fullName = `${profile.prefix}${profile.firstName} ${profile.lastName}`; return { no: Extension.ToThaiNumber((index + 1).toLocaleString()), fullName: fullName, affiliation: affiliation, - org: _org, posLevel: profile.posLevel, posNumber: Extension.ToThaiNumber(profile.orgShortName) +