scheduler-node-models 1.0.60 → 1.0.61

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.60",
3
+ "version": "1.0.61",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -372,19 +372,13 @@ class ChargeStatusReport extends general_1.Report {
372
372
  let formula = `SUMIF(${sheetLabel}!${this.getCellID(5, 5)}:`
373
373
  + `${this.getCellID(5, row)}, "*${codeText}*", ${sheetLabel}!`
374
374
  + `${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
375
- let cell = stats.getCell(statsRow, 5);
376
- cell.style = style;
377
- cell.value = { formula: formula };
375
+ this.setCell(stats, this.getCellID(4, statsRow), this.getCellID(4, statsRow), style, new general_1.Formula(formula));
378
376
  formula = `${this.getCellID(3, statsRow)} - ${this.getCellID(4, statsRow)}`;
379
- cell = stats.getCell(statsRow, 6);
380
- cell.style = style;
381
- cell.value = { formula: formula };
382
- formula = `IFERROR(${this.getCellID(5, statsRow)}/`
377
+ this.setCell(stats, this.getCellID(5, statsRow), this.getCellID(5, statsRow), style, new general_1.Formula(formula));
378
+ formula = `IFERROR(${this.getCellID(4, statsRow)}/`
383
379
  + `${this.getCellID(3, statsRow)},"N/A")`;
384
- cell = stats.getCell(statsRow, 7);
385
380
  style.numFmt = this.numformats.get('pct');
386
- cell.style = style;
387
- cell.value = { formula: formula };
381
+ this.setCell(stats, this.getCellID(6, statsRow), this.getCellID(6, statsRow), style, new general_1.Formula(formula));
388
382
  }
389
383
  else {
390
384
  // this branch will add only the forecast data formulas to the statistics. It
@@ -413,13 +407,9 @@ class ChargeStatusReport extends general_1.Report {
413
407
  let formula = `SUMIF(${sheetLabel}!${this.getCellID(5, 5)}:`
414
408
  + `${this.getCellID(5, row)}, "*${codeText}*", ${sheetLabel}!`
415
409
  + `${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
416
- let cell = stats.getCell(row, 9);
417
- cell.style = style;
418
- cell.value = { formula: formula };
410
+ this.setCell(stats, this.getCellID(8, row), this.getCellID(8, row), style, new general_1.Formula(formula));
419
411
  formula = `${this.getCellID(7, row)} - ${this.getCellID(8, row)}`;
420
- cell = stats.getCell(row, 10);
421
- cell.style = style;
422
- cell.value = { formula: formula };
412
+ this.setCell(stats, this.getCellID(9, row), this.getCellID(9, row), style, new general_1.Formula(formula));
423
413
  style.numFmt = this.numformats.get('pct');
424
414
  const oformula = new general_1.Formula(`IFERROR(${this.getCellID(8, row)}/`
425
415
  + `${this.getCellID(7, row)},"N/A")`);