scheduler-node-models 1.1.25 → 1.1.26

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.25",
3
+ "version": "1.1.26",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -130,7 +130,10 @@ 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
- hours += emp.getWorkedHours(current, new Date(current.getTime() + (24 * 3600000)), lc.chargeNumber, lc.extension);
133
+ const thours = emp.getWorkedHours(current, new Date(current.getTime() + (23 * 3600000)), lc.chargeNumber, lc.extension);
134
+ if (thours > 0) {
135
+ hours += thours;
136
+ }
134
137
  });
135
138
  if (hours > 0.0) {
136
139
  total += hours;