scheduler-node-models 1.0.24 → 1.0.26

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.24",
3
+ "version": "1.0.26",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -140,7 +140,7 @@ class Assignment {
140
140
  // if only one schedule is provided. Else use multiple schedule and rotate between
141
141
  // them.
142
142
  if (this.schedules.length === 1 || !this.rotationdays || this.rotationdays === 0) {
143
- const iDay = days & this.schedules[0].workdays.length;
143
+ const iDay = days % this.schedules[0].workdays.length;
144
144
  return this.schedules[0].getWorkday(iDay);
145
145
  }
146
146
  else if (this.schedules.length > 1) {
@@ -81,7 +81,9 @@ class EnterpriseSchedule extends general_1.Report {
81
81
  fitToWidth: 1,
82
82
  blackAndWhite: false,
83
83
  fitToPage: true,
84
- showGridLines: false
84
+ showGridLines: false,
85
+ horizontalCentered: true,
86
+ verticalCentered: true
85
87
  }
86
88
  });
87
89
  // set the widths of the columns: 1 = 17.0 and the rest are 4.0
@@ -264,9 +264,6 @@ class ScheduleReport extends general_1.Report {
264
264
  let stID = styleID;
265
265
  let code = '';
266
266
  const wd = emp.getWorkday(current);
267
- if (start.getMonth() === 8 && emp.name.lastname.toLowerCase() === 'erne') {
268
- console.log(JSON.stringify(wd));
269
- }
270
267
  if (wd && wd.code !== '') {
271
268
  code = wd.code.toUpperCase();
272
269
  if (this.styles.has(wd.code)) {