แก้ชื่อฟิวผังเงินเดือนลูกจ้าง

This commit is contained in:
Kittapath 2024-03-13 11:25:07 +07:00
parent 3128103f3a
commit 5fc5b1bb06
7 changed files with 48 additions and 17 deletions

View file

@ -127,7 +127,7 @@ export class SalaryRankEmployeesController extends Controller {
where: {
salaryEmployeeId: id,
},
select: ["id", "step", "salaryMounth", "salaryDay"],
select: ["id", "step", "salaryMonth", "salaryDay"],
order: {
step: "ASC",
},
@ -137,7 +137,7 @@ export class SalaryRankEmployeesController extends Controller {
const filteredSalaryRankEmployee = salaryRankEmployee.filter(
(x) =>
x.step?.toString().includes(keyword) ||
x.salaryMounth?.toString().includes(keyword) ||
x.salaryMonth?.toString().includes(keyword) ||
x.salaryDay?.toString().includes(keyword),
);
const slicedData = filteredSalaryRankEmployee.slice((page - 1) * pageSize, page * pageSize);