@measurequick/measurequick-report-generator 1.2.122 → 1.2.123

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.2.122",
3
+ "version": "1.2.123",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -148,11 +148,11 @@ export async function getReport(payload) {
148
148
  if (!val) val = "--";
149
149
  else if (measurement.fixTo && typeof val == 'number') val = val.toFixed(measurement.fixTo);
150
150
  if ((measurement.label == 'Ambient CO' || measurement.label == 'Return CO' || measurement.label == 'Supply CO') && !measurement.value) val = '0.0';
151
- if (typeof val == 'number' || !isNaN(val)) val = val.toLocaleString("en-US");
152
- else if (!isNaN(parseFloat(val))) val = parseFloat(val).toLocaleString("en-US");
151
+ if (measurement.ref != 'gas_input_rated' && measurement.ref != 'gas_input_after') {
152
+ if (typeof val == 'number' || !isNaN(val)) val = val.toLocaleString("en-US");
153
+ else if (!isNaN(parseFloat(val))) val = parseFloat(val).toLocaleString("en-US");
154
+ }
153
155
  if (measurement.fixTo && typeof val == 'number') val = val.toFixed(measurement.fixTo);
154
- // gas_input_rated
155
- // gas_input_after
156
156
  if (measurement.ref == 'co' || measurement.ref == 'o2' || measurement.ref == 'temperature_air' || measurement.ref == 'temperature_stack' || measurement.ref == 'coaf' || measurement.ref == 'excess_air' || measurement.ref == 'efficiency_gcv' || measurement.ref == 'efficiency_ncv' || measurement.ref == 'dew_point') val = measurement.value;
157
157
  form.getTextField(`Block${blockNum}-Row${rowNum}-Col2`).setText(`${val}`);
158
158
  if (blockNum != 4) {