From b025c848bce45cbecec1bce88afb3691110c165c Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 14 Mar 2024 12:02:51 +0700 Subject: [PATCH] fix year alert --- src/controllers/SalaryPeriodController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 4309007..80525af 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -1177,7 +1177,7 @@ export class SalaryPeriodController extends Controller { if (chk_period) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ประเภทผังปี " + salaryPeriod.effectiveDate.getFullYear() + " ซ้ำ", + "ประเภทผังปี " + Extension.ToThaiYear(salaryPeriod.effectiveDate.getFullYear()) + " ซ้ำ", ); }