scheduler-node-models 1.2.79 → 1.2.81
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
|
@@ -58,8 +58,9 @@ class ExcelRowIngest {
|
|
|
58
58
|
if (emp) {
|
|
59
59
|
for (let c = 3; c < 34; c++) {
|
|
60
60
|
const results = await this.readExcelRow(row, c, emp);
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
results.forEach(r => {
|
|
62
|
+
result.push(new excelRow_1.ExcelRow(r));
|
|
63
|
+
});
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -106,7 +107,6 @@ class ExcelRowIngest {
|
|
|
106
107
|
const sValue = row.getCell(c).toString().trim();
|
|
107
108
|
if (sValue !== '') {
|
|
108
109
|
if (hourRE.test(sValue)) {
|
|
109
|
-
console.log(`${emp.name.lastname} - ${sValue}`);
|
|
110
110
|
// test for value being an hours, if true find out which labor code
|
|
111
111
|
// to use, then create the excel row and add to the database.
|
|
112
112
|
let laborcode = new labor_1.LaborCode();
|
|
@@ -132,6 +132,7 @@ class ExcelRowIngest {
|
|
|
132
132
|
eRow.extension = laborcode.extension;
|
|
133
133
|
eRow.premium = '1';
|
|
134
134
|
eRow.hours = Number(sValue);
|
|
135
|
+
console.log(JSON.stringify(eRow));
|
|
135
136
|
result.push(eRow);
|
|
136
137
|
}
|
|
137
138
|
}
|