@measurequick/measurequick-report-generator 1.3.7 → 1.3.9
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
|
@@ -14,11 +14,11 @@ export async function getReport(payload) {
|
|
|
14
14
|
let l = payload.tests.length - 1;
|
|
15
15
|
let t = payload.tests[l].testInfo.data;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
form.getTextField('Installation Contractor').setText(payload.meta.company_name ? `${payload.meta.company_name}` : '
|
|
19
|
-
form.getTextField('Installation Tech').setText(payload.meta.technician_name ? `${payload.meta.technician_name}` : '
|
|
20
|
-
form.getTextField('System Reference ID').setText(payload.equipment.ahri_reference_number ? `${payload.equipment.ahri_reference_number}` : '
|
|
21
|
-
form.getTextField('Install Service Date').setText(payload.meta.date_of_service ? `${payload.meta.date_of_service}` : '
|
|
17
|
+
/*** BEGIN TOP SECTION ***/
|
|
18
|
+
form.getTextField('Installation Contractor').setText(payload.meta.company_name ? `${payload.meta.company_name}` : 'Oopsie');
|
|
19
|
+
form.getTextField('Installation Tech').setText(payload.meta.technician_name ? `${payload.meta.technician_name}` : 'Oopsie');
|
|
20
|
+
form.getTextField('System Reference ID').setText(payload.equipment.ahri_reference_number ? `${payload.equipment.ahri_reference_number}` : 'Oopsie');
|
|
21
|
+
form.getTextField('Install Service Date').setText(payload.meta.date_of_service ? `${payload.meta.date_of_service}` : 'Oopsie');
|
|
22
22
|
|
|
23
23
|
if (payload.equipment.primary_heating_fuel_type == 'Gas') form.getCheckBox('ExistingHeatSourceFuelGas').check();
|
|
24
24
|
else if (payload.equipment.primary_heating_fuel_type == 'Electric') form.getCheckBox('ExistingHeatSourceFuelElectric').check();
|
|
@@ -27,61 +27,67 @@ export async function getReport(payload) {
|
|
|
27
27
|
if (payload.project.program_type == 'HP') form.getCheckBox('SystemTypeHP').check();
|
|
28
28
|
else form.getCheckBox('SystemTypeAC').check();
|
|
29
29
|
|
|
30
|
+
/*** END TOP SECTION ***/
|
|
30
31
|
|
|
31
|
-
// TUNE UP
|
|
32
|
-
form.getTextField('Manufacturer').setText(payload.equipment.condenser_make ? `${payload.equipment.condenser_make}` : 'XXX');
|
|
33
|
-
form.getTextField('Measured EER').setText(payload.equipment.condenser_model ? `${payload.equipment.condenser_model}` : 'XXX');
|
|
34
|
-
// form.getTextField('Age of System').setText(payload.);
|
|
35
|
-
// form.getTextField('Heat Pump Efficiency').setText(payload.);
|
|
36
|
-
// form.getTextField('Model Number').setText(payload.);
|
|
37
|
-
// form.getTextField('Calculated SEER').setText(payload.);
|
|
38
|
-
// form.getTextField('Capacity Btuh').setText(payload.);
|
|
39
|
-
// form.getTextField('Installed Thermostat Make and Model').setText(payload.);
|
|
40
32
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
/*** BEGIN TUNE UP ***/
|
|
34
|
+
form.getTextField('Manufacturer').setText(payload.equipment.condenser_make ? `${payload.equipment.condenser_make}` : 'Oopsie');
|
|
35
|
+
form.getTextField('Measured EER').setText(payload.equipment.condenser_model ? `${payload.equipment.condenser_model}` : 'Oopsie');
|
|
36
|
+
form.getTextField('Age of System').setText(payload.equipment.age_of_system ? `${payload.equipment.age_of_system}` : 'Oopsie');
|
|
37
|
+
form.getTextField('Heat Pump Efficiency').setText(payload.equipment.hspf ? `${payload.equipment.hspf}` : 'Oopsie');
|
|
38
|
+
form.getTextField('Model Number').setText(payload.equipment.condenser_make ? `${payload.equipment.condenser_make}` : 'Oopsie');
|
|
39
|
+
form.getTextField('Calculated SEER').setText(payload.equipment.efficiency_seasonal ? `${payload.equipment.efficiency_seasonal}` : 'Oopsie');
|
|
40
|
+
form.getTextField('Capacity Btuh').setText(payload.equipment.capacity_total ? `${payload.equipment.capacity_total}` : 'Oopsie');
|
|
41
|
+
form.getTextField('Installed Thermostat Make and Model').setText(payload.equipment.thermostat_make ? `${payload.equipment.thermostat_make}` : 'Oopsie');
|
|
44
42
|
|
|
43
|
+
if (payload.project.refrigerant_charge_repair) form.getCheckBox('Refrigerant Charge Repair').check();
|
|
44
|
+
if (payload.project.indoor_coil_clean) form.getCheckBox('Indoor Coil Clean').check();
|
|
45
|
+
if (payload.project.outdoor_coil_clean) form.getCheckBox('Outdoor Coil Clean').check();
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
/*** END TUNE UP ***/
|
|
48
|
+
|
|
49
|
+
/*** BEGIN THERMOSTAT ***/
|
|
47
50
|
if (payload.equipment.replaced_tstat == 'Manual') form.getCheckBox('ExistingThermostatTypeManual').check();
|
|
48
51
|
else form.getCheckBox('ExistingThermostatTypeProgrammable').check();
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
form.getTextField('
|
|
56
|
-
form.getTextField('
|
|
57
|
-
form.getTextField('
|
|
58
|
-
form.getTextField('
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
form.getTextField('
|
|
75
|
-
|
|
76
|
-
form.getTextField('
|
|
77
|
-
form.getTextField('
|
|
78
|
-
form.getTextField('
|
|
79
|
-
form.getTextField('
|
|
80
|
-
form.getTextField('
|
|
81
|
-
form.getTextField('
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
53
|
+
/*** END THERMOSTAT ***/
|
|
54
|
+
|
|
55
|
+
/*** BEGIN HVAC QUALITY INSTALL ***/
|
|
56
|
+
form.getTextField('Capacity Btuh_2').setText(payload.equipment.capacity ? `${payload.equipment.capacity}` : 'Oopsie');
|
|
57
|
+
form.getTextField('AHRI Capacity Btuh').setText(payload.equipment.capacity_total ? `${payload.equipment.capacity_total}` : 'Oopsie');
|
|
58
|
+
form.getTextField('Measured System EER').setText(payload.equipment.efficiency ? `${payload.equipment.efficiency}` : 'Oopsie');
|
|
59
|
+
form.getTextField('Manufacturer_2').setText(payload.equipment.make ? `${payload.equipment.make}` : 'Oopsie');
|
|
60
|
+
form.getTextField('Heat Pump Efficiency COP or HSPF_2').setText(payload.equipment.cop ? `${payload.equipment.cop}` : 'Oopsie');
|
|
61
|
+
form.getTextField('AHRI Certificate Number').setText(payload.equipment.ahri_reference_number ? `${payload.equipment.ahri_reference_number}` : 'Oopsie');
|
|
62
|
+
form.getTextField('Calculated SEER normalized to AHRI conditions2').setText(payload.equipment.efficiency_seasonal ? `${payload.equipment.efficiency_seasonal}` : 'Oopsie');
|
|
63
|
+
form.getTextField('Indoor Coil Model Number').setText(payload.equipment.condenser_model ? `${payload.equipment.condenser_model}` : 'Oopsie');
|
|
64
|
+
form.getTextField('Age of System_2').setText(payload.equipment.age_of_system ? `${payload.equipment.age_of_system}` : 'Oopsie');
|
|
65
|
+
form.getTextField('Manufactured SEER2:').setText(payload.equipment.seer ? `${payload.equipment.seer}` : 'Oopsie');
|
|
66
|
+
form.getTextField('Manufactured EER2:').setText(payload.equipment.eer ? `${payload.equipment.eer}` : 'Oopsie');
|
|
67
|
+
form.getTextField('HP Efficiency COP or HSPF').setText(payload.equipment.cop ? `${payload.equipment.cop}` : 'Oopsie');
|
|
68
|
+
|
|
69
|
+
form.getRadioGroup('StableOperational15Min').select(payload.equipment.stable ? 'Yes' : 'No');
|
|
70
|
+
|
|
71
|
+
/*** END HVAC QUALITY INSTALL ***/
|
|
72
|
+
|
|
73
|
+
/*** BEGIN COOLING ***/
|
|
74
|
+
form.getTextField('InsidePerfReturnDryBulb').setText(t.temperature_entering_dry_bulb ? `${t.temperature_entering_dry_bulb}` : 'Oopsie');
|
|
75
|
+
form.getTextField('InsidePerfSupplyDryBulb').setText(t.temperature_leaving_dry_bulb ? `${t.temperature_leaving_dry_bulb}` : 'Oopsie');
|
|
76
|
+
form.getTextField('InsidePerfTempSplit').setText(t.temperature_split ? `${t.temperature_split}` : 'Oopsie');
|
|
77
|
+
form.getTextField('InsidePerfReturnWetBulb').setText(t.temperature_entering_wet_bulb ? `${t.temperature_entering_wet_bulb}` : 'Oopsie');
|
|
78
|
+
form.getTextField('InsidePerformanceSupplyWetBulb').setText(t.temperature_leaving_wet_bulb ? `${t.temperature_leaving_wet_bulb}` : 'Oopsie');
|
|
79
|
+
form.getTextField('OutsidePerf').setText(t.temperature_outdoor_dry_bulb ? `${t.temperature_outdoor_dry_bulb}` : 'Oopsie');
|
|
80
|
+
form.getTextField('TXVLiqLineTemp').setText(t.temperature_liquid_line ? `${t.temperature_liquid_line}` : 'Oopsie');
|
|
81
|
+
form.getTextField('TXVCondTemp').setText(t.temperature_condenser ? `${t.temperature_condenser}` : 'Oopsie');
|
|
82
|
+
form.getTextField('TXVSubcooling').setText(t.subcooling ? `${t.subcooling}` : 'Oopsie');
|
|
83
|
+
form.getTextField('FixedOrificeSuctionLineTemp').setText(t.temperature_suction_line ? `${t.temperature_suction_line}` : 'Oopsie');
|
|
84
|
+
form.getTextField('FixedOrificeSatTemp').setText(t.temperature_saturation_line ? `${t.temperature_saturation_line}` : 'Oopsie');
|
|
85
|
+
form.getTextField('FixedOrificeSuperheat').setText(t.superheat ? `${t.superheat}` : 'Oopsie');
|
|
86
|
+
form.getTextField('PressureReadingsLow Pressure').setText(t.pressure_condenser ? `${t.pressure_evaporator}` : 'Oopsie');
|
|
87
|
+
form.getTextField('PressureReadingsHigh Pressure').setText(t.pressure_evaporator ? `${t.pressure_condenser}` : 'Oopsie');
|
|
88
|
+
|
|
89
|
+
if (payload.equipment.charging_method == 'Heat') form.getCheckBox('ChargingMethodHeat').check();
|
|
90
|
+
else form.getCheckBox('ChargingMethodCooling').check();
|
|
85
91
|
|
|
86
92
|
if (payload.equipment.metering_device == 'Fixed Orifice') form.getCheckBox('RefrigDeviceFixed Orifice').check();
|
|
87
93
|
else form.getCheckBox('RefrigDeviceTXV').check();
|
|
@@ -90,26 +96,30 @@ export async function getReport(payload) {
|
|
|
90
96
|
else if (payload.equipment.refrigerant.name == 'R22') form.getCheckBox('R22').check();
|
|
91
97
|
else form.getCheckBox('R410A').check();
|
|
92
98
|
|
|
99
|
+
/*** BEGIN COOLING ***/
|
|
93
100
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
/*** BEGIN AIRFLOW **/
|
|
102
|
+
form.getTextField('CFMTon').setText(t.airflow_measured ? `${t.airflow_measured}` : 'Oopsie');
|
|
103
|
+
form.getTextField('DuctStaticPressReturnAir').setText(t.pressure_static_return_external ? `${t.pressure_static_return_external}` : 'Oopsie');
|
|
104
|
+
form.getTextField('DuctStaticPressSupplyAir').setText(t.pressure_static_supply_external ? `${t.pressure_static_supply_external}` : 'Oopsie');
|
|
105
|
+
form.getTextField('DuctStaticPressExtStaticPress').setText(t.pressure_static_total_external ? `${t.pressure_static_total_external}` : 'Oopsie');
|
|
99
106
|
|
|
100
107
|
if (payload.equipment.airflow_test_type == 'Temp Split') form.getCheckBox('TestingMethodTemp Split').check();
|
|
101
108
|
else if (payload.equipment.airflow_test_type == 'Flow Capture') form.getCheckBox('TestingMethodFlow Capture').check();
|
|
102
109
|
else if (payload.equipment.airflow_test_type == 'Flow Grid') form.getCheckBox('TestingMethodFlow Grid').check();
|
|
103
110
|
else form.getCheckBox('TestingMethodPressure Matching').check();
|
|
104
111
|
|
|
112
|
+
/*** END AIRFLOW **/
|
|
113
|
+
|
|
114
|
+
/*** BEGIN HEATING **/
|
|
115
|
+
form.getTextField('HeatingEnteringReturn').setText(t.temperature_entering_dry_bulb ? `${t.temperature_entering_dry_bulb}` : 'Oopsie');
|
|
116
|
+
form.getTextField('HeatingExistingSupply').setText(t.temperature_leaving_dry_bulb ? `${t.temperature_leaving_dry_bulb}` : 'Oopsie');
|
|
117
|
+
form.getTextField('HeatingTempRiseDiff').setText(t.temperature_rise ? `${t.temperature_rise}` : 'Oopsie');
|
|
118
|
+
form.getTextField('HeatingOutdoor').setText(t.temperature_outdoor_dry_bulb ? `${t.temperature_outdoor_dry_bulb}` : 'Oopsie');
|
|
119
|
+
form.getTextField('HeatingAHRI').setText(payload.equipment.ahri_reference_number ? `${payload.equipment.ahri_reference_number}` : 'Oopsie');
|
|
120
|
+
form.getTextField('HeatingSize of Unit').setText(t.capacity ? `${t.capacity}` : 'Oopsie');
|
|
105
121
|
|
|
106
|
-
|
|
107
|
-
form.getTextField('HeatingEnteringReturn').setText(t.temperature_entering_dry_bulb ? `${t.temperature_entering_dry_bulb}` : 'XXX');
|
|
108
|
-
form.getTextField('HeatingExistingSupply').setText(t.temperature_leaving_dry_bulb ? `${t.temperature_leaving_dry_bulb}` : 'XXX');
|
|
109
|
-
form.getTextField('HeatingTempRiseDiff').setText(t.temperature_rise ? `${t.temperature_rise}` : 'XXX');
|
|
110
|
-
form.getTextField('HeatingOutdoor').setText(t.temperature_outdoor_dry_bulb ? `${t.temperature_outdoor_dry_bulb}` : 'XXX');
|
|
111
|
-
form.getTextField('HeatingAHRI').setText(payload.equipment.ahri_reference_number ? `${payload.equipment.ahri_reference_number}` : 'XXX');
|
|
112
|
-
form.getTextField('HeatingSize of Unit').setText(t.capacity ? `${t.capacity}` : 'XXX');
|
|
122
|
+
/*** END HEATING **/
|
|
113
123
|
|
|
114
124
|
// flatten and return as base64
|
|
115
125
|
form.flatten();
|