scheduler-node-models 1.1.3 → 1.1.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -676,6 +676,12 @@ class Employee {
676
676
  end = new Date(Date.UTC(end.getFullYear(), end.getMonth(), end.getDate()));
677
677
  while (start.getTime() <= end.getTime()) {
678
678
  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
+ }
679
685
  if (wd) {
680
686
  const label = `${wd.workcenter}-${wd.code}`;
681
687
  if (label !== '-') {