scheduler-node-models 1.1.26 → 1.1.28

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -125,13 +125,16 @@ class Section {
125
125
  }
126
126
  output += `<${label}>${emp.companyinfo.jobtitle}</${label}>\n`;
127
127
  // next add the daily information
128
- let current = new Date(Date.UTC(start.getFullYear(), start.getMonth(), start.getDate()));
128
+ let current = new Date(Date.UTC(start.getFullYear(), start.getMonth(), 1));
129
129
  while (current.getTime() < end.getTime()) {
130
130
  let hours = 0.0;
131
131
  label = `Section${coCount}Row${count}_${current.getDate().toString().padStart(2, '0')}`;
132
132
  this.laborcodes.forEach(lc => {
133
- const thours = emp.getWorkedHours(current, new Date(current.getTime() + (23 * 3600000)), lc.chargeNumber, lc.extension);
133
+ const thours = emp.getWorkedHours(current, current, lc.chargeNumber, lc.extension);
134
134
  if (thours > 0) {
135
+ if (emp.name.lastname.toLowerCase() === 'erne') {
136
+ console.log(`${current} = ${thours}`);
137
+ }
135
138
  hours += thours;
136
139
  }
137
140
  });