scheduler-node-models 1.0.87 → 1.0.88

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.87",
3
+ "version": "1.0.88",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -552,74 +552,74 @@ class ChargeStatusReport extends general_1.Report {
552
552
  }
553
553
  ]
554
554
  });
555
- // lastly, set the totals column and conditional style format
556
- style = {
557
- fill: this.fills.get('dkblush'),
558
- font: this.fonts.get('bold12'),
559
- alignment: this.alignments.get('center'),
560
- border: this.borders.get('blackthin'),
561
- numFmt: this.numformats.get('monthsum')
562
- };
563
- column++;
564
- cellID = this.getCellID(column, row);
565
- formula = '';
566
- sumlist.forEach(c => {
567
- if (formula !== '') {
568
- formula += "+";
569
- }
570
- formula += c;
571
- });
572
- this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
573
- // these conditional formatting provides fill color change for if the employee
574
- // works more than his/her alloted hours or less than alloted hours.
575
- sheet.addConditionalFormatting({
576
- ref: `${cellID}`,
577
- rules: [
578
- {
579
- type: 'cellIs',
580
- priority: 1,
581
- operator: 'greaterThan',
582
- formulae: [lCode.hoursPerEmployee],
583
- style: {
584
- fill: { type: 'pattern', pattern: 'solid', fgColor: { argb: `ffffb5b5` } },
585
- font: { bold: true, size: 12, color: { argb: `ff000000` } },
586
- alignment: { horizontal: 'center', vertical: 'middle', wrapText: true },
587
- border: {
588
- top: { style: 'thin', color: { argb: 'ff000000' } },
589
- left: { style: 'thin', color: { argb: 'ff000000' } },
590
- bottom: { style: 'thin', color: { argb: 'ff000000' } },
591
- right: { style: 'thin', color: { argb: 'ff000000' } }
592
- },
593
- numFmt: "##0.0;[Red]##0.0;-;@"
594
- }
595
- }
596
- ]
597
- });
598
- sheet.addConditionalFormatting({
599
- ref: `${cellID}`,
600
- rules: [
601
- {
602
- type: 'cellIs',
603
- priority: 1,
604
- operator: 'lessThan',
605
- formulae: [lCode.hoursPerEmployee],
606
- style: {
607
- fill: { type: 'pattern', pattern: 'solid', fgColor: { argb: `ff99cc00` } },
608
- font: { bold: true, size: 12, color: { argb: `ff000000` } },
609
- alignment: { horizontal: 'center', vertical: 'middle', wrapText: true },
610
- border: {
611
- top: { style: 'thin', color: { argb: 'ff000000' } },
612
- left: { style: 'thin', color: { argb: 'ff000000' } },
613
- bottom: { style: 'thin', color: { argb: 'ff000000' } },
614
- right: { style: 'thin', color: { argb: 'ff000000' } }
615
- },
616
- numFmt: "##0.0;[Red]##0.0;-;@"
617
- }
618
- }
619
- ]
620
- });
621
555
  });
622
556
  });
557
+ // lastly, set the totals column and conditional style format
558
+ style = {
559
+ fill: this.fills.get('dkblush'),
560
+ font: this.fonts.get('bold12'),
561
+ alignment: this.alignments.get('center'),
562
+ border: this.borders.get('blackthin'),
563
+ numFmt: this.numformats.get('monthsum')
564
+ };
565
+ column++;
566
+ let cellID = this.getCellID(column, row);
567
+ let formula = '';
568
+ sumlist.forEach(c => {
569
+ if (formula !== '') {
570
+ formula += "+";
571
+ }
572
+ formula += c;
573
+ });
574
+ this.setCell(sheet, cellID, cellID, style, new general_1.Formula(formula));
575
+ // these conditional formatting provides fill color change for if the employee
576
+ // works more than his/her alloted hours or less than alloted hours.
577
+ sheet.addConditionalFormatting({
578
+ ref: `${cellID}`,
579
+ rules: [
580
+ {
581
+ type: 'cellIs',
582
+ priority: 1,
583
+ operator: 'greaterThan',
584
+ formulae: [lCode.hoursPerEmployee],
585
+ style: {
586
+ fill: { type: 'pattern', pattern: 'solid', fgColor: { argb: `ffffb5b5` } },
587
+ font: { bold: true, size: 12, color: { argb: `ff000000` } },
588
+ alignment: { horizontal: 'center', vertical: 'middle', wrapText: true },
589
+ border: {
590
+ top: { style: 'thin', color: { argb: 'ff000000' } },
591
+ left: { style: 'thin', color: { argb: 'ff000000' } },
592
+ bottom: { style: 'thin', color: { argb: 'ff000000' } },
593
+ right: { style: 'thin', color: { argb: 'ff000000' } }
594
+ },
595
+ numFmt: "##0.0;[Red]##0.0;-;@"
596
+ }
597
+ }
598
+ ]
599
+ });
600
+ sheet.addConditionalFormatting({
601
+ ref: `${cellID}`,
602
+ rules: [
603
+ {
604
+ type: 'cellIs',
605
+ priority: 1,
606
+ operator: 'lessThan',
607
+ formulae: [lCode.hoursPerEmployee],
608
+ style: {
609
+ fill: { type: 'pattern', pattern: 'solid', fgColor: { argb: `ff99cc00` } },
610
+ font: { bold: true, size: 12, color: { argb: `ff000000` } },
611
+ alignment: { horizontal: 'center', vertical: 'middle', wrapText: true },
612
+ border: {
613
+ top: { style: 'thin', color: { argb: 'ff000000' } },
614
+ left: { style: 'thin', color: { argb: 'ff000000' } },
615
+ bottom: { style: 'thin', color: { argb: 'ff000000' } },
616
+ right: { style: 'thin', color: { argb: 'ff000000' } }
617
+ },
618
+ numFmt: "##0.0;[Red]##0.0;-;@"
619
+ }
620
+ }
621
+ ]
622
+ });
623
623
  return column;
624
624
  }
625
625
  /**