scheduler-node-models 1.1.23 → 1.1.25
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
|
@@ -56,7 +56,7 @@ class CofSReport {
|
|
|
56
56
|
const now = new Date();
|
|
57
57
|
const filename = `${this.shortname}-${now.getFullYear()}`
|
|
58
58
|
+ `${(now.getMonth() + 1).toString().padStart(2, '0')}`
|
|
59
|
-
+ `${now.getDate().toString().padStart(2, '0')}`;
|
|
59
|
+
+ `${now.getDate().toString().padStart(2, '0')}.xml`;
|
|
60
60
|
let content = '';
|
|
61
61
|
const remarks = [];
|
|
62
62
|
// Create the xml formated output and attach to content string.
|
package/scheduler/sites/site.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Site = void 0;
|
|
4
4
|
const labor_1 = require("../labor");
|
|
5
|
+
const cofsReport_1 = require("./reports/cofsReport");
|
|
5
6
|
const forecast_1 = require("./reports/forecast");
|
|
6
7
|
const workcenter_1 = require("./workcenters/workcenter");
|
|
7
8
|
/**
|
|
@@ -44,6 +45,12 @@ class Site {
|
|
|
44
45
|
this.forecasts.sort((a, b) => a.compareTo(b));
|
|
45
46
|
}
|
|
46
47
|
this.cofs = [];
|
|
48
|
+
if (site && site.cofs) {
|
|
49
|
+
site.cofs.forEach(cofs => {
|
|
50
|
+
this.cofs.push(new cofsReport_1.CofSReport(cofs));
|
|
51
|
+
});
|
|
52
|
+
this.cofs.sort((a, b) => a.compareTo(b));
|
|
53
|
+
}
|
|
47
54
|
this.employees = [];
|
|
48
55
|
}
|
|
49
56
|
/**
|