scheduler-node-models 1.0.73 → 1.0.75
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
@@ -287,7 +287,6 @@ class ChargeStatusReport extends general_1.Report {
|
|
287
287
|
});
|
288
288
|
});
|
289
289
|
let column = 0;
|
290
|
-
console.log(employees.length);
|
291
290
|
// this report is listed by labor code, then employees with hours
|
292
291
|
report.laborCodes.forEach(lCode => {
|
293
292
|
// step through the employees to see if they have hours for this labor code
|
@@ -470,8 +469,9 @@ class ChargeStatusReport extends general_1.Report {
|
|
470
469
|
this.setCell(sheet, this.getCellID(5, row), this.getCellID(5, row), style, `${lCode.chargeNumber} ${lCode.extension}`);
|
471
470
|
this.setCell(sheet, this.getCellID(6, row), this.getCellID(6, row), lStyle, emp.name.lastname);
|
472
471
|
this.setCell(sheet, this.getCellID(7, row), this.getCellID(7, row), style, (emp.companyinfo.rank) ? emp.companyinfo.rank : '');
|
473
|
-
this.setCell(sheet, this.getCellID(
|
474
|
-
this.setCell(sheet, this.getCellID(
|
472
|
+
this.setCell(sheet, this.getCellID(8, row), this.getCellID(8, row), style, emp.companyinfo.employeeid);
|
473
|
+
this.setCell(sheet, this.getCellID(9, row), this.getCellID(9, row), style, (emp.companyinfo.alternateid) ? emp.companyinfo.alternateid : '');
|
474
|
+
this.setCell(sheet, this.getCellID(10, row), this.getCellID(10, row), style, (emp.companyinfo.costcenter) ? emp.companyinfo.costcenter : '');
|
475
475
|
// This section steps though the forecast report periods to provide the hours worked/
|
476
476
|
// or forecasted to work, in the period. Each period corresponds to an accounting
|
477
477
|
// month and its weekly periods. These are determined by the contract administrator
|
@@ -497,9 +497,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
497
497
|
else {
|
498
498
|
formula = `${this.getCellID(column + 1, row)}`;
|
499
499
|
}
|
500
|
-
|
501
|
-
cell.style = style;
|
502
|
-
cell.value = { formula: formula };
|
500
|
+
this.setCell(sheet, this.getCellID(column, row), this.getCellID(column, row), style, new general_1.Formula(formula));
|
503
501
|
// step through the weekly periods to get the employee's work hours.
|
504
502
|
period.periods.forEach(prd => {
|
505
503
|
column++;
|
@@ -528,6 +526,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
528
526
|
hours += emp.getForecastHours(lCode, first, new Date(last.getTime() + (24 * 3600000)), compare);
|
529
527
|
}
|
530
528
|
let cellID = this.getCellID(column, row);
|
529
|
+
this.setCell(sheet, cellID, cellID, style, hours);
|
531
530
|
// this sets an excel conditional formatting relationship for if the resultant
|
532
531
|
// value is equal to zero (0), changes fill color and displays a dash.
|
533
532
|
sheet.addConditionalFormatting({
|
@@ -570,9 +569,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
570
569
|
}
|
571
570
|
formula += c;
|
572
571
|
});
|
573
|
-
|
574
|
-
cell.style = style;
|
575
|
-
cell.value = { formula: formula };
|
572
|
+
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
576
573
|
// these conditional formatting provides fill color change for if the employee
|
577
574
|
// works more than his/her alloted hours or less than alloted hours.
|
578
575
|
sheet.addConditionalFormatting({
|