เคลียรค่าสำรองเงินเดือน

This commit is contained in:
Kittapath 2024-04-03 16:34:36 +07:00
parent 866dd91d81
commit d94ca5480e
2 changed files with 31 additions and 11 deletions

View file

@ -659,6 +659,11 @@ export class SalaryPeriodController extends Controller {
);
}
}
}
if (body.type == "FULL") {
salaryProfile.isReserve = body.isReserve;
} else {
salaryProfile.isReserve = false;
}
//Type & Level
@ -692,7 +697,6 @@ export class SalaryPeriodController extends Controller {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบระดับตำแหน่ง");
}
salaryProfile.type = body.type;
salaryProfile.isReserve = body.isReserve;
let type = salaryProfile.type;
//SalaryRank
let salaryRanks: any = null;