From e6779f8ec715ddcc9218cf2cbc423278134620f6 Mon Sep 17 00:00:00 2001 From: adisak Date: Tue, 7 Apr 2026 18:12:34 +0700 Subject: [PATCH] =?UTF-8?q?2365=20=E0=B8=8A=E0=B8=B1=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B2=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/SalaryPeriodController.ts | 10 +++++----- src/controllers/SalaryPeriodEmployeeController.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 14d74e3..12276e7 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -470,7 +470,7 @@ export class SalaryPeriodController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -935,7 +935,7 @@ export class SalaryPeriodController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -1272,7 +1272,7 @@ export class SalaryPeriodController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -1981,7 +1981,7 @@ export class SalaryPeriodController extends Controller { Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -2474,7 +2474,7 @@ export class SalaryPeriodController extends Controller { const posLevel = await this.posLevelRepository.findOne({ where: { posTypeId: posType.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!posLevel) { diff --git a/src/controllers/SalaryPeriodEmployeeController.ts b/src/controllers/SalaryPeriodEmployeeController.ts index 88120ab..1f96f04 100644 --- a/src/controllers/SalaryPeriodEmployeeController.ts +++ b/src/controllers/SalaryPeriodEmployeeController.ts @@ -430,7 +430,7 @@ export class SalaryPeriodEmployeeController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -750,7 +750,7 @@ export class SalaryPeriodEmployeeController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -941,7 +941,7 @@ export class SalaryPeriodEmployeeController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -1132,7 +1132,7 @@ export class SalaryPeriodEmployeeController extends Controller { const Level = await this.posLevelRepository.findOne({ where: { posTypeId: Type.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!Level) { @@ -1597,7 +1597,7 @@ export class SalaryPeriodEmployeeController extends Controller { const posLevel = await this.posLevelRepository.findOne({ where: { posTypeId: posType.id, - posLevelName: salaryProfile.posLevel, + posLevelName: salaryProfile.posLevel?.split("/")[0], }, }); if (!posLevel) {