@measurequick/measurequick-report-generator 1.5.107 → 1.5.108

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.5.107",
3
+ "version": "1.5.108",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -878,12 +878,10 @@ export async function getReport(payload, _test) {
878
878
 
879
879
  let return_duct_loss = null;
880
880
  let pct_return_duct_loss = null;
881
- if (pct_leakage && test_data.test_data.capacity_total) {
882
- return_duct_loss = (
883
- +pct_leakage * +test_data.test_data.capacity_total
884
- ).toFixed(0);
881
+ if (pct_leakage && test_data.capacity_total) {
882
+ return_duct_loss = (+pct_leakage * +test_data.capacity_total).toFixed(0);
885
883
  pct_return_duct_loss = (
886
- +return_duct_loss / +test_data.test_data.capacity_total
884
+ +return_duct_loss / +test_data.capacity_total
887
885
  ).toFixed(0);
888
886
  }
889
887
 
@@ -897,12 +895,12 @@ export async function getReport(payload, _test) {
897
895
  //Supply Duct System Performance
898
896
  let supply_duct_loss = null;
899
897
  let pct_supply_duct_loss = null;
900
- if (supply_pct_leakage && test_data.test_data.capacity_total) {
898
+ if (supply_pct_leakage && test_data.capacity_total) {
901
899
  supply_duct_loss = (
902
- +supply_pct_leakage * +test_data.test_data.capacity_total
900
+ +supply_pct_leakage * +test_data.capacity_total
903
901
  ).toFixed(0);
904
902
  pct_supply_duct_loss = (
905
- +supply_duct_loss / +test_data.test_data.capacity_total
903
+ +supply_duct_loss / +test_data.capacity_total
906
904
  ).toFixed(0);
907
905
  }
908
906
  form