scheduler-node-models 1.2.84 → 1.2.85
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
|
@@ -102,7 +102,7 @@ class ExcelRowIngest {
|
|
|
102
102
|
return laborcodes;
|
|
103
103
|
}
|
|
104
104
|
async readExcelRow(row, c, colDate, emp) {
|
|
105
|
-
const
|
|
105
|
+
const answer = [];
|
|
106
106
|
// create test patterns for hours, if value doesn't match the hours pattern, it will
|
|
107
107
|
// be assumed to be a leave code
|
|
108
108
|
const hPattern = "^[0-9]{1,2}(\.[0-9]+)?$";
|
|
@@ -137,7 +137,7 @@ class ExcelRowIngest {
|
|
|
137
137
|
eRow.extension = laborcode.extension;
|
|
138
138
|
eRow.premium = '1';
|
|
139
139
|
eRow.hours = Number(sValue);
|
|
140
|
-
|
|
140
|
+
answer.push(eRow);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
@@ -151,13 +151,13 @@ class ExcelRowIngest {
|
|
|
151
151
|
eRow.employee = emp.companyinfo.employeeid;
|
|
152
152
|
eRow.code = wc.id;
|
|
153
153
|
eRow.hours = emp.getStandardWorkday(colDate);
|
|
154
|
-
|
|
154
|
+
answer.push(eRow);
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
console.log(`
|
|
160
|
-
return
|
|
159
|
+
console.log(`Answer: ${answer.length}`);
|
|
160
|
+
return answer;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
exports.ExcelRowIngest = ExcelRowIngest;
|