scheduler-node-models 1.0.72 → 1.0.74
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,13 +469,13 @@ 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 : '');
|
475
474
|
// This section steps though the forecast report periods to provide the hours worked/
|
476
475
|
// or forecasted to work, in the period. Each period corresponds to an accounting
|
477
476
|
// month and its weekly periods. These are determined by the contract administrator
|
478
477
|
// and put in the forecast report object.
|
479
|
-
let column =
|
478
|
+
let column = 10;
|
480
479
|
const sumlist = []; // used to provide a total hours from the monthly values
|
481
480
|
report.periods.forEach(period => {
|
482
481
|
column++;
|
@@ -497,9 +496,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
497
496
|
else {
|
498
497
|
formula = `${this.getCellID(column + 1, row)}`;
|
499
498
|
}
|
500
|
-
|
501
|
-
cell.style = style;
|
502
|
-
cell.value = { formula: formula };
|
499
|
+
this.setCell(sheet, this.getCellID(column, row), this.getCellID(column, row), style, new general_1.Formula(formula));
|
503
500
|
// step through the weekly periods to get the employee's work hours.
|
504
501
|
period.periods.forEach(prd => {
|
505
502
|
column++;
|
@@ -528,6 +525,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
528
525
|
hours += emp.getForecastHours(lCode, first, new Date(last.getTime() + (24 * 3600000)), compare);
|
529
526
|
}
|
530
527
|
let cellID = this.getCellID(column, row);
|
528
|
+
this.setCell(sheet, cellID, cellID, style, hours);
|
531
529
|
// this sets an excel conditional formatting relationship for if the resultant
|
532
530
|
// value is equal to zero (0), changes fill color and displays a dash.
|
533
531
|
sheet.addConditionalFormatting({
|
@@ -570,9 +568,7 @@ class ChargeStatusReport extends general_1.Report {
|
|
570
568
|
}
|
571
569
|
formula += c;
|
572
570
|
});
|
573
|
-
|
574
|
-
cell.style = style;
|
575
|
-
cell.value = { formula: formula };
|
571
|
+
this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
|
576
572
|
// these conditional formatting provides fill color change for if the employee
|
577
573
|
// works more than his/her alloted hours or less than alloted hours.
|
578
574
|
sheet.addConditionalFormatting({
|