@measurequick/measurequick-report-generator 1.2.134 → 1.2.136

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.134",
3
+ "version": "1.2.136",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -130,9 +130,9 @@ export async function getReport(payload) {
130
130
 
131
131
  for (let blockNum = 1; blockNum < 5; blockNum++) {
132
132
  let altHeader = "";
133
- if (payload.meta.report_mode != 'heating' && (blockNum == 1 || blockNum == 4)) altHeader = '2a';
133
+ if (payload.meta.report_mode == 'heating' && payload.meta.multi_stage && (blockNum == 1 || blockNum == 4)) altHeader = '2a';
134
134
  form.getTextField(`Block${blockNum}-Title${altHeader}`).setText(payload[section][`title${blockNum}`]);
135
- if (altHeader == '2a') form.getTextField(`Block${blockNum}-Title2b`).setText('1st/2nd Stage');
135
+ if (altHeader == '2a') form.getTextField(`Block${blockNum}-Title2b`).setText('1st/2nd');
136
136
  for (let rowNum = 1; rowNum < 14; rowNum++) {
137
137
  let measurement;
138
138
  if (t == 0) measurement = payload.test_in[`block${blockNum}`][rowNum - 1];