scheduler-node-models 1.0.106 → 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.106",
3
+ "version": "1.0.107",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -516,7 +516,7 @@ class ChargeStatusReport extends general_1.Report {
516
516
  alignment: this.alignments.get('center'),
517
517
  border: this.borders.get('blackthin')
518
518
  };
519
- 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);
520
520
  // if the worksheet displays forecast data and the last date is after the
521
521
  // employee's last recorded actual workday, show as a forecast value and get the
522
522
  // forecast hours added to the actual hours.
@@ -524,7 +524,7 @@ class ChargeStatusReport extends general_1.Report {
524
524
  if (last.getTime() > lastWorked.getTime()) {
525
525
  style.font = this.fonts.get('blue12');
526
526
  }
527
- hours += emp.getForecastHours(lCode, first, new Date(last.getTime() + (24 * 3600000)), this.workcodes);
527
+ hours += emp.getForecastHours(lCode, first, last, this.workcodes);
528
528
  }
529
529
  let cellID = this.getCellID(column, row);
530
530
  this.setCell(sheet, cellID, cellID, style, hours);