scheduler-node-models 1.1.27 → 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.27",
3
+ "version": "1.1.28",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -130,7 +130,7 @@ class Section {
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
135
  if (emp.name.lastname.toLowerCase() === 'erne') {
136
136
  console.log(`${current} = ${thours}`);