ทดสอบใช้ CHAR10 ขึ้นบรรทัดใหม่

This commit is contained in:
Bright 2025-07-11 14:17:50 +07:00
parent 7c324f1f6f
commit 536734088f

View file

@ -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) +