diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 19ccedd..57b3a30 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -2276,7 +2276,7 @@ export class SalaryPeriodController extends Controller { if (chk_period) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ประเภทผังปี " + (requestBody.effectiveDate.getFullYear() + 543) + " ซ้ำ", + "ประเภทผังปี " + (requestBody.year + 543) + " ซ้ำ", ); } const beforeChk_SalaryPeriod = structuredClone(chk_SalaryPeriod);