scheduler-node-models 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -381,9 +381,6 @@ class Employee {
|
|
|
381
381
|
wday.hours = work;
|
|
382
382
|
return wday;
|
|
383
383
|
}
|
|
384
|
-
if (date.getTime() <= lastWorked.getTime()) {
|
|
385
|
-
wday = undefined;
|
|
386
|
-
}
|
|
387
384
|
// lastly check leave list
|
|
388
385
|
this.leaves.forEach(lv => {
|
|
389
386
|
if (lv.useLeave(date)
|
|
@@ -676,12 +673,6 @@ class Employee {
|
|
|
676
673
|
end = new Date(Date.UTC(end.getFullYear(), end.getMonth(), end.getDate()));
|
|
677
674
|
while (start.getTime() <= end.getTime()) {
|
|
678
675
|
const wd = this.getWorkdayWOLeaves(start);
|
|
679
|
-
if (this.name.lastname.toLowerCase() === 'erne') {
|
|
680
|
-
const now = new Date();
|
|
681
|
-
if (start.getTime() < now.getTime()) {
|
|
682
|
-
console.log(JSON.stringify(wd));
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
676
|
if (wd) {
|
|
686
677
|
const label = `${wd.workcenter}-${wd.code}`;
|
|
687
678
|
if (label !== '-') {
|