rename function

This commit is contained in:
Bright 2024-12-10 16:51:39 +07:00
parent 0d9af75ded
commit 4529ac4f9c

View file

@ -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<SalaryProfileEmployee> {
async calSalary(type: string, salaryProfile: SalaryProfileEmployee): Promise<SalaryProfileEmployee> {
if (type == "NONE") {
salaryProfile.isNext = false;
salaryProfile.amountSpecial = 0;