scheduler-node-models 1.0.123 → 1.0.125
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
@@ -310,6 +310,35 @@ class ChargeStatusReport extends general_1.Report {
|
|
310
310
|
}
|
311
311
|
});
|
312
312
|
});
|
313
|
+
// add totals row for each column on the sheet.
|
314
|
+
column = 11;
|
315
|
+
const sumRow = row + 1;
|
316
|
+
report.periods.forEach(period => {
|
317
|
+
style = {
|
318
|
+
fill: this.fills.get('dkblush'),
|
319
|
+
font: this.fonts.get('bold12'),
|
320
|
+
alignment: this.alignments.get('center'),
|
321
|
+
border: this.borders.get('blackthin'),
|
322
|
+
numFmt: this.numformats.get('monthsum')
|
323
|
+
};
|
324
|
+
column++;
|
325
|
+
let formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
|
326
|
+
cellID = this.getCellID(column, sumRow);
|
327
|
+
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
328
|
+
period.periods.forEach(prd => {
|
329
|
+
column++;
|
330
|
+
style = {
|
331
|
+
fill: this.fills.get('ltgray'),
|
332
|
+
font: this.fonts.get('bold12'),
|
333
|
+
alignment: this.alignments.get('center'),
|
334
|
+
border: this.borders.get('blackthin'),
|
335
|
+
numFmt: this.numformats.get('sum')
|
336
|
+
};
|
337
|
+
formula = `SUM(${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
|
338
|
+
cellID = this.getCellID(column, sumRow);
|
339
|
+
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
340
|
+
});
|
341
|
+
});
|
313
342
|
if (stats && statsRow) {
|
314
343
|
// this is used to create the dates in the statistics labor rows
|
315
344
|
const dFormat = new Intl.DateTimeFormat('en-US', {
|
@@ -464,7 +493,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
464
493
|
style.fill = this.fills.get('ltbrown');
|
465
494
|
lStyle.fill = this.fills.get('ltbrown');
|
466
495
|
}
|
467
|
-
sheet.getRow(row).height =
|
496
|
+
sheet.getRow(row).height = 15;
|
468
497
|
// this section sets the various required columns with information about the
|
469
498
|
// employment in the labor code.
|
470
499
|
this.setCell(sheet, this.getCellID(0, row), this.getCellID(0, row), style, (lCode.clin) ? lCode.clin : '');
|