scheduler-node-models 1.0.15 → 1.0.17
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
@@ -139,7 +139,6 @@ class ScheduleReport extends general_1.Report {
|
|
139
139
|
iEmps.forEach(iEmp => {
|
140
140
|
const emp = new employees_1.Employee(iEmp);
|
141
141
|
if (emp.atSite(this.site.id, startDate, endDate)) {
|
142
|
-
console.log(emp.name.lastname);
|
143
142
|
let position = false;
|
144
143
|
this.site.workcenters.forEach((wkctr, w) => {
|
145
144
|
wkctr.positions?.forEach((pos, p) => {
|
@@ -157,6 +156,7 @@ class ScheduleReport extends general_1.Report {
|
|
157
156
|
});
|
158
157
|
if (!position) {
|
159
158
|
const wd = emp.getAssignmentForPeriod(startDate, endDate);
|
159
|
+
console.log(`${emp.name.lastname} = ${JSON.stringify(wd)}`);
|
160
160
|
this.site.workcenters.forEach((wkctr, w) => {
|
161
161
|
if (wkctr.id.toLowerCase() === wd.workcenter.toLowerCase()) {
|
162
162
|
wkctr.shifts?.forEach((shft, s) => {
|