scheduler-node-models 1.0.17 → 1.0.19
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
@@ -678,19 +678,21 @@ class Employee {
|
|
678
678
|
const wd = this.getWorkdayWOLeaves(start);
|
679
679
|
if (wd) {
|
680
680
|
const label = `${wd.workcenter}-${wd.code}`;
|
681
|
-
if (
|
682
|
-
|
683
|
-
|
684
|
-
num
|
685
|
-
|
681
|
+
if (label !== '-') {
|
682
|
+
if (assigned.has(label)) {
|
683
|
+
let num = assigned.get(label);
|
684
|
+
if (num) {
|
685
|
+
num++;
|
686
|
+
assigned.set(label, num);
|
687
|
+
}
|
688
|
+
else {
|
689
|
+
assigned.set(label, 1);
|
690
|
+
}
|
686
691
|
}
|
687
692
|
else {
|
688
693
|
assigned.set(label, 1);
|
689
694
|
}
|
690
695
|
}
|
691
|
-
else {
|
692
|
-
assigned.set(label, 1);
|
693
|
-
}
|
694
696
|
}
|
695
697
|
start = new Date(start.getTime() + (24 * 3600000));
|
696
698
|
}
|