scheduler-node-models 1.0.47 → 1.0.49

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.0.47",
3
+ "version": "1.0.49",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -393,13 +393,11 @@ class ChargeStatusReport extends general_1.Report {
393
393
  let row = 0;
394
394
  for (let r = 3; r <= statsRow && row === 0; r++) {
395
395
  const cell = stats.getCell(r, 1);
396
- console.log(`${cell.text} === ${codeText}`);
397
396
  if (cell.text.toLowerCase() === codeText.toLowerCase()) {
398
397
  row = r;
399
398
  }
400
399
  }
401
400
  // row greater than zero means the labor code was found and
402
- console.log(`${codeText} - ${row}`);
403
401
  if (row > 0) {
404
402
  const bLight = (row % 2) === 0;
405
403
  // forecast information next four columns, total hours, total forecasted
@@ -411,23 +409,21 @@ class ChargeStatusReport extends general_1.Report {
411
409
  style.fill = this.fills.get('ltgreen');
412
410
  }
413
411
  style.numFmt = this.numformats.get('sum');
414
- this.setCell(stats, this.getCellID(7, statsRow), this.getCellID(7, statsRow), style, codeHours);
412
+ this.setCell(stats, this.getCellID(7, row), this.getCellID(7, row), style, codeHours);
415
413
  let formula = `SUMIF(${sheetLabel}!${this.getCellID(5, 5)}:`
416
414
  + `${this.getCellID(5, row)}, "*${codeText}*", ${sheetLabel}!`
417
415
  + `${this.getCellID(column, 5)}:${this.getCellID(column, row)})`;
418
- let cell = stats.getCell(statsRow, 9);
416
+ let cell = stats.getCell(row, 9);
419
417
  cell.style = style;
420
418
  cell.value = { formula: formula };
421
- formula = `${this.getCellID(7, statsRow)} - ${this.getCellID(8, statsRow)}`;
422
- cell = stats.getCell(statsRow, 10);
419
+ formula = `${this.getCellID(7, row)} - ${this.getCellID(8, row)}`;
420
+ cell = stats.getCell(row, 10);
423
421
  cell.style = style;
424
422
  cell.value = { formula: formula };
425
- formula = `IFERROR(${this.getCellID(5, statsRow)}/`
426
- + `${this.getCellID(3, statsRow)},"N/A")`;
427
- cell = stats.getCell(statsRow, 11);
428
423
  style.numFmt = this.numformats.get('pct');
429
- cell.style = style;
430
- cell.value = { formula: formula };
424
+ const iformula = { formula: `IFERROR(${this.getCellID(5, row)}/`
425
+ + `${this.getCellID(3, row)},"N/A")` };
426
+ this.setCell(sheet, this.getCellID(11, row), this.getCellID(11, row), style, iformula);
431
427
  }
432
428
  }
433
429
  }