แก้แจ้งเตือนปีที่ซ้ำเป็น พศ.

This commit is contained in:
Bright 2024-03-01 10:38:05 +07:00
parent 8b81afe00d
commit 772741ed01

View file

@ -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) + " ซ้ำ",
);
}