scheduler-node-models 1.0.60 → 1.0.62
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/general/report.js
CHANGED
package/package.json
CHANGED
@@ -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
|
-
|
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
|
-
|
380
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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")`);
|