From 4529ac4f9c34bc17f44044893d8a9714f2505138 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 10 Dec 2024 16:51:39 +0700 Subject: [PATCH] rename function --- src/controllers/SalaryPeriodEmployeeController.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/SalaryPeriodEmployeeController.ts b/src/controllers/SalaryPeriodEmployeeController.ts index c28390f..5da441f 100644 --- a/src/controllers/SalaryPeriodEmployeeController.ts +++ b/src/controllers/SalaryPeriodEmployeeController.ts @@ -402,7 +402,7 @@ export class SalaryPeriodEmployeeController extends Controller { } let type = salaryProfile.type; - salaryProfile = await this.testza(type, salaryProfile); + salaryProfile = await this.calSalary(type, salaryProfile); salaryProfile.lastUpdateUserId = req.user.sub; salaryProfile.lastUpdateFullName = req.user.name; @@ -725,7 +725,7 @@ export class SalaryPeriodEmployeeController extends Controller { salaryProfile.remark = body.remark == null ? _null : body.remark; let type = salaryProfile.type; - salaryProfile = await this.testza(type, salaryProfile); + salaryProfile = await this.calSalary(type, salaryProfile); salaryProfile.lastUpdateUserId = req.user.sub; salaryProfile.lastUpdateFullName = req.user.name; @@ -1083,7 +1083,7 @@ export class SalaryPeriodEmployeeController extends Controller { } let type = salaryProfile.type; - salaryProfile = await this.testza(type, salaryProfile); + salaryProfile = await this.calSalary(type, salaryProfile); const before = null; salaryProfile.salaryOrgId = salaryOrg.id; @@ -1724,7 +1724,7 @@ export class SalaryPeriodEmployeeController extends Controller { return new HttpSuccess(); } - async testza(type: string, salaryProfile: SalaryProfileEmployee): Promise { + async calSalary(type: string, salaryProfile: SalaryProfileEmployee): Promise { if (type == "NONE") { salaryProfile.isNext = false; salaryProfile.amountSpecial = 0;