scheduler-node-models 1.2.56 → 1.2.58
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
|
@@ -54,7 +54,8 @@ class ExcelRowIngest {
|
|
|
54
54
|
if (worksheet) {
|
|
55
55
|
worksheet.eachRow((row, r) => {
|
|
56
56
|
const name = row.getCell(1).toString().trim();
|
|
57
|
-
if (name !== '' && name !== 'Name' && name.toLowerCase() !== 'remarks'
|
|
57
|
+
if (name !== '' && name !== 'Name' && name.toLowerCase() !== 'remarks'
|
|
58
|
+
&& name.toLowerCase() !== 'N/A') {
|
|
58
59
|
console.log(name);
|
|
59
60
|
if (this.site.employees) {
|
|
60
61
|
this.site.employees.forEach(emp => {
|
|
@@ -65,6 +66,7 @@ class ExcelRowIngest {
|
|
|
65
66
|
// Step through the days of the month to create the excel rows to add
|
|
66
67
|
// for this employee
|
|
67
68
|
const sValue = row.getCell(c).toString().trim();
|
|
69
|
+
console.log(sValue);
|
|
68
70
|
if (sValue !== '') {
|
|
69
71
|
if (hourRE.test(sValue)) {
|
|
70
72
|
// test for value being an hours, if true find out which labor code
|
|
@@ -116,6 +118,9 @@ class ExcelRowIngest {
|
|
|
116
118
|
}
|
|
117
119
|
});
|
|
118
120
|
}
|
|
121
|
+
else {
|
|
122
|
+
throw new Error('No employees in site');
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
});
|
|
121
126
|
}
|