diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index c9b4638..a0f3198 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -1175,7 +1175,7 @@ export class SalaryPeriodController extends Controller { if (chk_period) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ประเภทผังปี " + Extension.ToThaiYear(salaryPeriod.effectiveDate.getFullYear()) + " ซ้ำ", + "ประเภทผังปี " + Extension.ToThaiYear(salaryPeriod.year) + " ซ้ำ", ); }