rename function
This commit is contained in:
parent
0d9af75ded
commit
4529ac4f9c
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue