@measurequick/measurequick-report-generator 1.2.6 → 1.2.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -120,16 +120,16 @@ export function getElectricalData(test) {
120
120
  aDisplay = (+test.data.amperage_l1).toFixed(1);
121
121
  }
122
122
  if (vDisplay) {
123
- if (testObj.source['voltage'+src] == 'ComfortGuard') vIcon = "ComfortGuard";
124
- else if (testObj.source['voltage'+src] == 'iDVM550') vIcon = "iDVM550";
125
- else if (testObj.source['voltage'+src] == 'iDVM510') vIcon = "iDVM510";
126
- else if (testObj.source['voltage'+src] == 'Fieldpiece') vIcon = "Fieldpiece";
123
+ if (test.source['voltage'+src] == 'ComfortGuard') vIcon = "ComfortGuard";
124
+ else if (test.source['voltage'+src] == 'iDVM550') vIcon = "iDVM550";
125
+ else if (test.source['voltage'+src] == 'iDVM510') vIcon = "iDVM510";
126
+ else if (test.source['voltage'+src] == 'Fieldpiece') vIcon = "Fieldpiece";
127
127
  }
128
128
  if (aDisplay) {
129
- if (testObj.source['amperage'+src] == 'ComfortGuard') aIcon = "ComfortGuard";
130
- else if (testObj.source['amperage'+src] == 'iDVM550') aIcon = "iDVM550";
131
- else if (testObj.source['amperage'+src] == 'iDVM510') aIcon = "iDVM510";
132
- else if (testObj.source['amperage'+src] == 'Fieldpiece') aIcon = "Fieldpiece";
129
+ if (test.source['amperage'+src] == 'ComfortGuard') aIcon = "ComfortGuard";
130
+ else if (test.source['amperage'+src] == 'iDVM550') aIcon = "iDVM550";
131
+ else if (test.source['amperage'+src] == 'iDVM510') aIcon = "iDVM510";
132
+ else if (test.source['amperage'+src] == 'Fieldpiece') aIcon = "Fieldpiece";
133
133
  }
134
134
  return { voltage: vDisplay, amperage: aDisplay, voltageIcon: vIcon, amperageIcon: aIcon };
135
135
  }