scheduler-node-models 1.0.125 → 1.0.127
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
@@ -234,6 +234,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
234
234
|
columns = 11;
|
235
235
|
report.periods.forEach(period => {
|
236
236
|
columns++;
|
237
|
+
sheet.getColumn(columns).outlineLevel = 0;
|
237
238
|
style = {
|
238
239
|
fill: this.fills.get('white'),
|
239
240
|
font: this.fonts.get('bold14'),
|
@@ -272,6 +273,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
272
273
|
this.setCell(sheet, cellID, cellID, dtStyle, dFormat.format(prd));
|
273
274
|
cellID = this.getCellID(columns + p + 1, 4);
|
274
275
|
this.setCell(sheet, cellID, cellID, wkStyle, `Week ${p + 1}`);
|
276
|
+
sheet.getColumn(columns + p + 1).outlineLevel = 1;
|
275
277
|
});
|
276
278
|
columns += period.periods.length;
|
277
279
|
});
|
@@ -313,6 +315,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
313
315
|
// add totals row for each column on the sheet.
|
314
316
|
column = 11;
|
315
317
|
const sumRow = row + 1;
|
318
|
+
let formula = '';
|
316
319
|
report.periods.forEach(period => {
|
317
320
|
style = {
|
318
321
|
fill: this.fills.get('dkblush'),
|
@@ -322,7 +325,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
322
325
|
numFmt: this.numformats.get('monthsum')
|
323
326
|
};
|
324
327
|
column++;
|
325
|
-
|
328
|
+
formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
|
326
329
|
cellID = this.getCellID(column, sumRow);
|
327
330
|
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
328
331
|
period.periods.forEach(prd => {
|
@@ -339,6 +342,17 @@ class ChargeStatusReport extends general_1.Report {
|
|
339
342
|
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
340
343
|
});
|
341
344
|
});
|
345
|
+
column++;
|
346
|
+
style = {
|
347
|
+
fill: this.fills.get('dkblush'),
|
348
|
+
font: this.fonts.get('bold12'),
|
349
|
+
alignment: this.alignments.get('center'),
|
350
|
+
border: this.borders.get('blackthin'),
|
351
|
+
numFmt: this.numformats.get('monthsum')
|
352
|
+
};
|
353
|
+
formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
|
354
|
+
cellID = this.getCellID(column, sumRow);
|
355
|
+
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
342
356
|
if (stats && statsRow) {
|
343
357
|
// this is used to create the dates in the statistics labor rows
|
344
358
|
const dFormat = new Intl.DateTimeFormat('en-US', {
|