scheduler-node-models 1.0.124 → 1.0.126

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.124",
3
+ "version": "1.0.126",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -85,17 +85,17 @@ class ChargeStatusReport extends general_1.Report {
85
85
  this.fonts.set("nobold9", { bold: false, size: 9, color: { argb: 'ff000000' } });
86
86
  this.fonts.set('notnorm', { bold: false, size: 9, color: { argb: 'ff0070c0' } });
87
87
  // set fills
88
- this.fills.set('black', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ff000000' } });
89
- this.fills.set('white', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffffffff' } });
90
- this.fills.set('blue', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ff99ccff' } });
91
- this.fills.set('ltblue', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffccffff' } });
92
- this.fills.set('green', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ff99cc00' } });
93
- this.fills.set('ltgreen', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffccffcc' } });
94
- this.fills.set('dkblush', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffda9694' } });
95
- this.fills.set('yellow', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffffff00' } });
96
- this.fills.set('ltbrown', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'fffcd5b4' } });
97
- this.fills.set('gray', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffc0c0c0' } });
98
- this.fills.set('ltgray', { type: 'pattern', pattern: 'solid', bgColor: { argb: 'ffbfbfbf' } });
88
+ this.fills.set('black', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ff000000' } });
89
+ this.fills.set('white', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffffffff' } });
90
+ this.fills.set('blue', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ff99ccff' } });
91
+ this.fills.set('ltblue', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffccffff' } });
92
+ this.fills.set('green', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ff99cc00' } });
93
+ this.fills.set('ltgreen', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffccffcc' } });
94
+ this.fills.set('dkblush', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffda9694' } });
95
+ this.fills.set('yellow', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffffff00' } });
96
+ this.fills.set('ltbrown', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'fffcd5b4' } });
97
+ this.fills.set('gray', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffc0c0c0' } });
98
+ this.fills.set('ltgray', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffbfbfbf' } });
99
99
  // set borders
100
100
  this.borders.set('blackthin', {
101
101
  top: { style: 'thin', color: { argb: 'ff000000' } },
@@ -313,6 +313,7 @@ class ChargeStatusReport extends general_1.Report {
313
313
  // add totals row for each column on the sheet.
314
314
  column = 11;
315
315
  const sumRow = row + 1;
316
+ let formula = '';
316
317
  report.periods.forEach(period => {
317
318
  style = {
318
319
  fill: this.fills.get('dkblush'),
@@ -322,7 +323,7 @@ class ChargeStatusReport extends general_1.Report {
322
323
  numFmt: this.numformats.get('monthsum')
323
324
  };
324
325
  column++;
325
- let formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
326
+ formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
326
327
  cellID = this.getCellID(column, sumRow);
327
328
  this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
328
329
  period.periods.forEach(prd => {
@@ -339,6 +340,17 @@ class ChargeStatusReport extends general_1.Report {
339
340
  this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
340
341
  });
341
342
  });
343
+ column++;
344
+ style = {
345
+ fill: this.fills.get('dkblush'),
346
+ font: this.fonts.get('bold12'),
347
+ alignment: this.alignments.get('center'),
348
+ border: this.borders.get('blackthin'),
349
+ numFmt: this.numformats.get('monthsum')
350
+ };
351
+ formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
352
+ cellID = this.getCellID(column, sumRow);
353
+ this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
342
354
  if (stats && statsRow) {
343
355
  // this is used to create the dates in the statistics labor rows
344
356
  const dFormat = new Intl.DateTimeFormat('en-US', {