scheduler-node-models 1.0.102 → 1.0.103
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
@@ -163,10 +163,12 @@ class ChargeStatusReport extends general_1.Report {
|
|
163
163
|
sheet.properties.outlineLevelCol = 0;
|
164
164
|
// set column widths
|
165
165
|
const widths = [8, 10.57, 9, 14.57, 10.57, 20, 18.14, 17.57, 14.57, 14.57, 14.57, 55.14];
|
166
|
+
const hidden = [true, true, true, true, true, false, false, true, true, true, true, true];
|
166
167
|
const months = ['January', 'Febuary', 'March', 'April', 'May', 'June', 'July',
|
167
168
|
'August', 'September', 'October', 'November', 'December'];
|
168
169
|
widths.forEach((width, w) => {
|
169
170
|
sheet.getColumn(w + 1).width = width;
|
171
|
+
sheet.getColumn(w + 1).hidden = hidden[w];
|
170
172
|
});
|
171
173
|
let columns = 12;
|
172
174
|
report.periods.forEach(period => {
|
@@ -174,10 +176,10 @@ class ChargeStatusReport extends general_1.Report {
|
|
174
176
|
const startCol = columns + 2;
|
175
177
|
const endCol = startCol + (period.periods.length - 1);
|
176
178
|
sheet.getColumn(sumCol).width = 12;
|
177
|
-
sheet.getColumn(sumCol).outlineLevel =
|
179
|
+
sheet.getColumn(sumCol).outlineLevel = 1;
|
178
180
|
for (let i = startCol; i <= endCol; i++) {
|
179
181
|
sheet.getColumn(i).width = 9;
|
180
|
-
sheet.getColumn(i).outlineLevel =
|
182
|
+
sheet.getColumn(i).outlineLevel = 2;
|
181
183
|
}
|
182
184
|
columns = endCol;
|
183
185
|
});
|
@@ -289,7 +291,6 @@ class ChargeStatusReport extends general_1.Report {
|
|
289
291
|
const actual = emp.getWorkedHours(report.startDate, report.endDate, lCode.chargeNumber, lCode.extension);
|
290
292
|
const forecast = emp.getForecastHours(lCode, report.startDate, report.endDate, this.workcodes);
|
291
293
|
if (actual > 0 || forecast > 0) {
|
292
|
-
console.log(`${emp.name.lastname} = ${actual} - ${forecast}`);
|
293
294
|
row++;
|
294
295
|
if (emp.getLastWorkday().getTime() > lastWorked.getTime()) {
|
295
296
|
lastWorked = new Date(emp.getLastWorkday());
|