@measurequick/measurequick-report-generator 1.2.148 → 1.2.149

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.148",
3
+ "version": "1.2.149",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@ export function getReport(payload) {
10
10
 
11
11
  projectObj = payload.projectObj;
12
12
  test_name = null;
13
- testObj = payload.test;
13
+ //testObj = payload.test;
14
14
  template = payload.globalVars.pdfTemplate;
15
15
  globalVars = payload.globalVars;
16
16
  equipObj = payload.equipmentObj;
@@ -18,7 +18,7 @@ export function getReport(payload) {
18
18
  imageMap = payload.images.map;
19
19
  acrConnect = payload.acr;
20
20
  cloud_generation = false;
21
- testName = test_name ? test_name : testObj.test_name ? testObj.test_name : 'System Test';
21
+ //testName = test_name ? test_name : testObj.test_name ? testObj.test_name : 'System Test';
22
22
  units = {
23
23
  temperature: payload.globalVars.units.temperature,
24
24
  static_pressure: payload.globalVars.units.static_pressure_units,
@@ -50,19 +50,10 @@ export function getReport(payload) {
50
50
  });
51
51
 
52
52
  let testObjs = [];
53
- if (projectObj.multipleSnapshots) {
54
- for (let i = 0; i < projectObj.multipleSnapshots.length; i++) {
55
- if (projectObj.multipleSnapshots[i]) {
56
- if (projectObj.tests[i] &&
57
- projectObj.tests[i].testInfo &&
58
- !projectObj.tests[i].testInfo.test_name
59
- )
60
- projectObj.tests[i].testInfo.test_name = projectObj.tests[i].test_name;
61
- testObjs.push(projectObj.tests[i].testInfo);
62
- }
63
- }
64
- }
65
- if (testObjs.length == 0) testObjs.push(testObj);
53
+ if (payload.tests) {
54
+ if (payload.tests.hvac_tuneup_test_in) testObjs.push(payload.tests.hvac_tuneup_test_in);
55
+ if (payload.tests.hvac_tuneup_test_out) testObjs.push(payload.tests.hvac_tuneup_test_out);
56
+ } else testObjs.push(payload.test);
66
57
 
67
58
  let testo_size = .16,
68
59
  testo_offset_x = .25,