@measurequick/measurequick-report-generator 1.5.164 → 1.5.166

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": "@measurequick/measurequick-report-generator",
3
- "version": "1.5.164",
3
+ "version": "1.5.166",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -80,9 +80,18 @@ export async function getReport(payload, _test) {
80
80
  payload.project.specialProjectType !== "ComfortMaxx Heating"
81
81
  ? true
82
82
  : false;
83
+ let isGasFurnace =
84
+ payload &&
85
+ payload.project &&
86
+ payload.project.comfortMaxxHeatingMode === "Gas Furance"
87
+ ? true
88
+ : false;
83
89
  if (isCooling)
84
90
  form.getTextField("Title").setText("Cooling System Verify Test");
85
- else form.getTextField("Title").setText("Heating System Verify Test");
91
+ else if (isGasFurnace)
92
+ form.getTextField("Title").setText("Gas Furnace Verify Test");
93
+ else if (!isGasFurnace)
94
+ form.getTextField("Title").setText("Heat Pump Heating Verify Test");
86
95
 
87
96
  //Customer
88
97
  let customerParts = [];
@@ -364,16 +373,31 @@ export async function getReport(payload, _test) {
364
373
  );
365
374
 
366
375
  //May need to adjust this if the fan has a specific setting and find a good place to put it in the app
367
- form
368
- .getTextField("FanCapacity")
369
- .setText(
370
- payload.equipment.tonnage_nominal
371
- ? (
372
- +payload.equipment.tonnage_nominal *
373
- +payload.equipment.airflow_nominal
374
- ).toFixed(0) + " tons"
375
- : "N/A"
376
- );
376
+ if (
377
+ payload &&
378
+ payload.project &&
379
+ payload.project.comfortMaxxHeatingMode === "Gas Furnace"
380
+ ) {
381
+ form
382
+ .getTextField("FanCapacity")
383
+ .setText(
384
+ payload.equipment.ductScreeningAirflowTarget
385
+ ? (+payload.equipment.ductScreeningAirflowTarget).toFixed(0) +
386
+ " cfm"
387
+ : "N/A"
388
+ );
389
+ } else {
390
+ form
391
+ .getTextField("FanCapacity")
392
+ .setText(
393
+ payload.equipment.tonnage_nominal
394
+ ? (
395
+ +payload.equipment.tonnage_nominal *
396
+ +payload.equipment.airflow_nominal
397
+ ).toFixed(0) + " cfm"
398
+ : "N/A"
399
+ );
400
+ }
377
401
  form
378
402
  .getTextField("FanSpeedSetting")
379
403
  .setText(
@@ -936,7 +960,10 @@ export async function getReport(payload, _test) {
936
960
  ? (+test_targets.capacity_total).toFixed(0)
937
961
  : null;
938
962
 
939
- if (!isCooling && payload.equipment.heat_type !== "Heat Pump") {
963
+ if (
964
+ !isCooling &&
965
+ payload.project.comfortMaxxHeatingMode === "Gas Furnace"
966
+ ) {
940
967
  equipment_rated_btu = payload.equipment.gas_output_rated
941
968
  ? payload.equipment.gas_output_rated
942
969
  : null;