From b752f84cdf0bd63d41e56b2e00b7e8b0bfde42f2 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 15 Mar 2024 09:55:07 +0700 Subject: [PATCH] fix bug --- 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 c03d219..865fb8b 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -1178,7 +1178,7 @@ export class SalaryPeriodController extends Controller { if (chk_period) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ประเภทผังปี " + Extension.ToThaiYear(salaryPeriod.effectiveDate.getFullYear()) + " ซ้ำ", + "ประเภทผังปี " + Extension.ToThaiYear(salaryPeriod.year) + " ซ้ำ", ); }