refs #6065 remove workcenter #1871

Merged
carlossa merged 1 commits from hotfix-hoursFetch into master 2023-11-30 09:20:27 +00:00
1 changed files with 4 additions and 4 deletions

View File

@ -111,8 +111,10 @@ class Controller extends Section {
dayIndex.setDate(dayIndex.getDate() + 1);
}
this.fetchHours();
this.getWeekData();
if (this.worker) {
this.fetchHours();
this.getWeekData();
}
}
set weekTotalHours(totalHours) {
@ -171,8 +173,6 @@ class Controller extends Section {
]}
};
this.$.model.applyFilter(filter, params).then(() => {
if (!this.card.hasWorkCenter) return;
Review

esta linea es va posar per a que els autonomos no fallaren crec recordar @alexm ?

esta linea es va posar per a que els autonomos no fallaren crec recordar @alexm ?
this.getWorkedHours(this.started, this.ended);
this.getAbsences();
});