scheduler-node-models 1.1.22 → 1.1.24

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/general/report.js CHANGED
@@ -45,8 +45,7 @@ class Report {
45
45
  if (numFmt && numFmt !== '') {
46
46
  sheet.getCell(begin).numFmt = numFmt;
47
47
  }
48
- console.log(`${typeof value} = ${value}`);
49
- if (!value) {
48
+ if (!value && !(typeof value === 'number')) {
50
49
  sheet.getCell(begin).value = '';
51
50
  }
52
51
  else if (value instanceof Formula) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -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
  /**