From 43ae1b5b07d2fd33a40dfa5cb6db827e476f703f Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 26 Mar 2024 10:30:02 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=AB=E0=B8=B2=E0=B8=AA=E0=B8=96=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=E0=B8=B0=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88active?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/SalaryPeriodController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index fdc1f50..f5f4bcd 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -1434,6 +1434,7 @@ export class SalaryPeriodController extends Controller { const [salaryPeriod, total] = await AppDataSource.getRepository(SalaryPeriod) .createQueryBuilder("salaryPeriod") .andWhere(year != 0 ? "salaryPeriod.year LIKE :year" : "1=1", { year: `${year}` }) + .andWhere({ isActive: true }) .select([ "salaryPeriod.id", "salaryPeriod.period",