scheduler-node-models 1.0.135 → 1.0.137

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.135",
3
+ "version": "1.0.137",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -59,6 +59,7 @@ class LeaveReport extends general_1.Report {
59
59
  workbook.creator = user.getFullName();
60
60
  workbook.created = new Date();
61
61
  this.createStyles();
62
+ this.createLeaveListing(workbook, start.getFullYear(), this.holidays.length > 0);
62
63
  return workbook;
63
64
  }
64
65
  /**
@@ -190,6 +191,10 @@ class LeaveReport extends general_1.Report {
190
191
  sheet.getColumn(4).width = 7;
191
192
  sheet.getColumn(5).width = 7;
192
193
  }
194
+ let row = 2;
195
+ this.employees.forEach(emp => {
196
+ row = this.employeePTOHolidaySection(sheet, emp, row, year, showHolidays) + 1;
197
+ });
193
198
  }
194
199
  /**
195
200
  * This function will create the employee's Holidays and PTO report section