3448-worker_calendar-payedHolidays #846
|
@ -23,6 +23,7 @@ class Controller extends Section {
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(() => this.repaint())
|
.then(() => this.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
|
.then(() => this.getPayedHolidays())
|
||||||
.then(() => this.getYearHolidays());
|
.then(() => this.getYearHolidays());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ class Controller extends Section {
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(() => this.repaint())
|
.then(() => this.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
|
.then(() => this.getPayedHolidays())
|
||||||
.then(() => this.getYearHolidays());
|
.then(() => this.getYearHolidays());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,6 +106,15 @@ class Controller extends Section {
|
||||||
}, data => this.contractHolidays = data);
|
}, data => this.contractHolidays = data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getPayedHolidays() {
|
||||||
|
this.getContractHolidays();
|
||||||
|
if (this.contractHolidays !== undefined) {// && business.reasonEndFk !== null
|
||||||
|
const daysToPay = this.contractHolidays.totalHolidays - this.contractHolidays.holidaysEnjoyed;
|
||||||
|
console.log(this.businessId, this.contractHolidays.totalHolidays, this.contractHolidays.holidaysEnjoyed);
|
||||||
|
console.log(daysToPay);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getYearHolidays() {
|
getYearHolidays() {
|
||||||
this.getHolidays({
|
this.getHolidays({
|
||||||
year: this.year
|
year: this.year
|
||||||
|
@ -225,6 +236,7 @@ class Controller extends Section {
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(calendar.repaint())
|
.then(calendar.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
|
.then(() => this.getPayedHolidays())
|
||||||
.then(() => this.getYearHolidays())
|
.then(() => this.getYearHolidays())
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -246,6 +258,7 @@ class Controller extends Section {
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(calendar.repaint())
|
.then(calendar.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
|
.then(() => this.getPayedHolidays())
|
||||||
.then(() => this.getYearHolidays())
|
.then(() => this.getYearHolidays())
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -261,6 +274,7 @@ class Controller extends Section {
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(calendar.repaint())
|
.then(calendar.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
|
.then(() => this.getPayedHolidays())
|
||||||
.then(() => this.getYearHolidays())
|
.then(() => this.getYearHolidays())
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue