From 536734088f5a3bc794708acdc0c1a5c5d295f52b Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 11 Jul 2025 14:17:50 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B9=83=E0=B8=8A=E0=B9=89=20CHAR10=20=E0=B8=82?= =?UTF-8?q?=E0=B8=B6=E0=B9=89=E0=B8=99=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=97?= =?UTF-8?q?=E0=B8=B1=E0=B8=94=E0=B9=83=E0=B8=AB=E0=B8=A1=E0=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ReportController.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index ca36177..f60a72b 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -376,11 +376,14 @@ export class ReportController extends Controller { .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) + From dbb43f596947111ea668637061cae9a732534b4c Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 11 Jul 2025 14:23:54 +0700 Subject: [PATCH 2/2] 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) +