From 772741ed01cafb3a6b09828f6709d155943580a3 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 1 Mar 2024 10:38:05 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=87=E0=B9=80=E0=B8=95=E0=B8=B7=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=9B=E0=B8=B5=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=8B=E0=B9=89?= =?UTF-8?q?=E0=B8=B3=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99=20=E0=B8=9E?= =?UTF-8?q?=E0=B8=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/SalaryPeriodController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index c749880..fc3e991 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -748,7 +748,7 @@ export class SalaryPeriodController extends Controller { if (chk_period) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ประเภทผังปี " + salaryPeriod.effectiveDate.getFullYear() + " ซ้ำ", + "ประเภทผังปี " + Extension.ToThaiYear(salaryPeriod.year) + " ซ้ำ", ); } @@ -796,7 +796,7 @@ export class SalaryPeriodController extends Controller { if (chk_period) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ประเภทผังปี " + (requestBody.effectiveDate.getFullYear() + 543) + " ซ้ำ", + "ประเภทผังปี " + Extension.ToThaiYear(requestBody.year) + " ซ้ำ", ); }