scheduler-node-models 1.0.105 → 1.0.107

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.105",
3
+ "version": "1.0.107",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -156,6 +156,11 @@ class ChargeStatusReport extends general_1.Report {
156
156
  showGridLines: false,
157
157
  horizontalCentered: true,
158
158
  verticalCentered: true
159
+ },
160
+ properties: {
161
+ defaultRowHeight: 20,
162
+ defaultColWidth: 4,
163
+ outlineLevelCol: 0
159
164
  }
160
165
  });
161
166
  // set column widths
@@ -410,9 +415,6 @@ class ChargeStatusReport extends general_1.Report {
410
415
  }
411
416
  }
412
417
  });
413
- sheet.properties.defaultRowHeight = 20;
414
- sheet.properties.defaultColWidth = 4;
415
- sheet.properties.outlineLevelCol = 0;
416
418
  return statsRow;
417
419
  }
418
420
  /**
@@ -514,7 +516,7 @@ class ChargeStatusReport extends general_1.Report {
514
516
  alignment: this.alignments.get('center'),
515
517
  border: this.borders.get('blackthin')
516
518
  };
517
- let hours = emp.getWorkedHours(first, new Date(last.getTime() + (24 * 3600000)), lCode.chargeNumber, lCode.extension);
519
+ let hours = emp.getWorkedHours(first, last, lCode.chargeNumber, lCode.extension);
518
520
  // if the worksheet displays forecast data and the last date is after the
519
521
  // employee's last recorded actual workday, show as a forecast value and get the
520
522
  // forecast hours added to the actual hours.
@@ -522,7 +524,7 @@ class ChargeStatusReport extends general_1.Report {
522
524
  if (last.getTime() > lastWorked.getTime()) {
523
525
  style.font = this.fonts.get('blue12');
524
526
  }
525
- hours += emp.getForecastHours(lCode, first, new Date(last.getTime() + (24 * 3600000)), this.workcodes);
527
+ hours += emp.getForecastHours(lCode, first, last, this.workcodes);
526
528
  }
527
529
  let cellID = this.getCellID(column, row);
528
530
  this.setCell(sheet, cellID, cellID, style, hours);