แก้คำนวนเงินลูกจ้าง
This commit is contained in:
parent
d94ca5480e
commit
50fc458c3f
1 changed files with 27 additions and 3 deletions
|
|
@ -474,7 +474,15 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
order: { step: "DESC" },
|
||||
});
|
||||
//เงินเดือนเกินตาราง
|
||||
if (salaryRankMax != null && step > salaryRankMax.step) {
|
||||
if (
|
||||
salaryRankMax != null &&
|
||||
step > salaryRankMax.step &&
|
||||
(salaryFormula == null ||
|
||||
(salaryFormula != null &&
|
||||
salaryProfile.amount != null &&
|
||||
salaryFormula.salaryMax != null &&
|
||||
salaryFormula.salaryMax > salaryProfile.amount))
|
||||
) {
|
||||
group = group + 1;
|
||||
//เงินเดือนในกลุ่มต่อไป
|
||||
let salaryRankAmount = await this.salaryRankRepository.findOne({
|
||||
|
|
@ -892,7 +900,15 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
order: { step: "DESC" },
|
||||
});
|
||||
//เงินเดือนเกินตาราง
|
||||
if (salaryRankMax != null && step > salaryRankMax.step) {
|
||||
if (
|
||||
salaryRankMax != null &&
|
||||
step > salaryRankMax.step &&
|
||||
(salaryFormula == null ||
|
||||
(salaryFormula != null &&
|
||||
salaryProfile.amount != null &&
|
||||
salaryFormula.salaryMax != null &&
|
||||
salaryFormula.salaryMax > salaryProfile.amount))
|
||||
) {
|
||||
group = group + 1;
|
||||
//เงินเดือนในกลุ่มต่อไป
|
||||
let salaryRankAmount = await this.salaryRankRepository.findOne({
|
||||
|
|
@ -1415,7 +1431,15 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
order: { step: "DESC" },
|
||||
});
|
||||
//เงินเดือนเกินตาราง
|
||||
if (salaryRankMax != null && step > salaryRankMax.step) {
|
||||
if (
|
||||
salaryRankMax != null &&
|
||||
step > salaryRankMax.step &&
|
||||
(salaryFormula == null ||
|
||||
(salaryFormula != null &&
|
||||
salaryProfile.amount != null &&
|
||||
salaryFormula.salaryMax != null &&
|
||||
salaryFormula.salaryMax > salaryProfile.amount))
|
||||
) {
|
||||
group = group + 1;
|
||||
//เงินเดือนในกลุ่มต่อไป
|
||||
let salaryRankAmount = await this.salaryRankRepository.findOne({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue