From 3debbe1602bce728e2242c779739d427619a2f27 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 28 May 2024 12:02:41 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20list=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index d8ccaab6..e722cb21 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -183,7 +183,9 @@ export class ProfileController extends Controller { profile.dateRetire != null ? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.dateRetire)) : "", - RegistrationAddress: `${_regisAddres}${_subDistrict}${_district}${_province}${registrationZipCode}`, + RegistrationAddress: Extension.ToThaiNumber( + `${_regisAddres}${_subDistrict}${_district}${_province}${registrationZipCode}`, + ), SalaryAmount: profile.profileSalary.length > 0 && profile.profileSalary[0].amount != null ? Extension.ToThaiNumber(profile.profileSalary[0].amount.toLocaleString()) @@ -193,7 +195,10 @@ export class ProfileController extends Controller { profile.profileEducations[profile.profileEducations.length - 1].institute != null ? profile.profileEducations[profile.profileEducations.length - 1].institute : "", - AppointText: profile.dateAppoint != null ? profile.dateAppoint : "", + AppointText: + profile.dateAppoint != null + ? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.dateAppoint)) + : "", SalaryDate: profile.profileSalary.length > 0 && profile.profileSalary[0].date != null ? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.profileSalary[0].date))