scheduler-node-models 1.0.88 → 1.0.90
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
@@ -296,6 +296,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
296
296
|
const actual = emp.getWorkedHours(report.startDate, report.endDate, lCode.chargeNumber, lCode.extension);
|
297
297
|
const forecast = emp.getForecastHours(lCode, report.startDate, report.endDate, compareCodes);
|
298
298
|
if (actual > 0 || forecast > 0) {
|
299
|
+
console.log(`${emp.name.lastname} = ${actual} - ${forecast}`);
|
299
300
|
row++;
|
300
301
|
if (emp.getLastWorkday().getTime() > lastWorked.getTime()) {
|
301
302
|
lastWorked = new Date(emp.getLastWorkday());
|
@@ -459,6 +460,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
459
460
|
style.fill = this.fills.get('ltbrown');
|
460
461
|
lStyle.fill = this.fills.get('ltbrown');
|
461
462
|
}
|
463
|
+
sheet.getRow(row).height = 20;
|
462
464
|
// this section sets the various required columns with information about the
|
463
465
|
// employment in the labor code.
|
464
466
|
this.setCell(sheet, this.getCellID(0, row), this.getCellID(0, row), style, (lCode.clin) ? lCode.clin : '');
|
@@ -472,6 +474,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
472
474
|
this.setCell(sheet, this.getCellID(8, row), this.getCellID(8, row), style, emp.companyinfo.employeeid);
|
473
475
|
this.setCell(sheet, this.getCellID(9, row), this.getCellID(9, row), style, (emp.companyinfo.alternateid) ? emp.companyinfo.alternateid : '');
|
474
476
|
this.setCell(sheet, this.getCellID(10, row), this.getCellID(10, row), style, (emp.companyinfo.costcenter) ? emp.companyinfo.costcenter : '');
|
477
|
+
this.setCell(sheet, this.getCellID(11, row), this.getCellID(11, row), style, "");
|
475
478
|
// This section steps though the forecast report periods to provide the hours worked/
|
476
479
|
// or forecasted to work, in the period. Each period corresponds to an accounting
|
477
480
|
// month and its weekly periods. These are determined by the contract administrator
|
@@ -497,7 +500,9 @@ class ChargeStatusReport extends general_1.Report {
|
|
497
500
|
else {
|
498
501
|
formula = `${this.getCellID(column + 1, row)}`;
|
499
502
|
}
|
500
|
-
|
503
|
+
let cellID = this.getCellID(column, row);
|
504
|
+
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
505
|
+
sumlist.push(cellID);
|
501
506
|
// step through the weekly periods to get the employee's work hours.
|
502
507
|
period.periods.forEach(prd => {
|
503
508
|
column++;
|