scheduler-node-models 1.2.77 → 1.2.78
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
|
@@ -53,7 +53,6 @@ class ExcelRowIngest {
|
|
|
53
53
|
if (row.getCell(1) && row.getCell(1) !== null && row.getCell(1).value !== null) {
|
|
54
54
|
const name = row.getCell(1).toString().trim();
|
|
55
55
|
if (name.includes(',')) {
|
|
56
|
-
console.log(name);
|
|
57
56
|
if (this.site.employees) {
|
|
58
57
|
const emp = this.site.employees.find(e => e.name.getLastFirst().toLowerCase() === name.toLowerCase());
|
|
59
58
|
if (emp) {
|
|
@@ -105,9 +104,9 @@ class ExcelRowIngest {
|
|
|
105
104
|
// Step through the days of the month to create the excel rows to add
|
|
106
105
|
// for this employee
|
|
107
106
|
const sValue = row.getCell(c).toString().trim();
|
|
108
|
-
console.log(`${emp.name.lastname} - ${sValue}`);
|
|
109
107
|
if (sValue !== '') {
|
|
110
108
|
if (hourRE.test(sValue)) {
|
|
109
|
+
console.log(`${emp.name.lastname} - ${sValue}`);
|
|
111
110
|
// test for value being an hours, if true find out which labor code
|
|
112
111
|
// to use, then create the excel row and add to the database.
|
|
113
112
|
let laborcode = new labor_1.LaborCode();
|