scheduler-node-models 1.0.16 → 1.0.18

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.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -156,6 +156,7 @@ class ScheduleReport extends general_1.Report {
156
156
  });
157
157
  if (!position) {
158
158
  const wd = emp.getAssignmentForPeriod(startDate, endDate);
159
+ console.log(`${emp.name.lastname} = ${JSON.stringify(wd)}`);
159
160
  this.site.workcenters.forEach((wkctr, w) => {
160
161
  if (wkctr.id.toLowerCase() === wd.workcenter.toLowerCase()) {
161
162
  wkctr.shifts?.forEach((shft, s) => {
@@ -166,7 +167,6 @@ class ScheduleReport extends general_1.Report {
166
167
  }
167
168
  });
168
169
  if (bShift) {
169
- console.log(emp.name.lastname);
170
170
  shft.employees?.push(emp);
171
171
  wkctr.shifts[s] = shft;
172
172
  this.site.workcenters[w] = wkctr;