MaiXinRong 5 years ago
parent
commit
881ee11302
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/lib/rpt_data_analysis.js

+ 2 - 2
app/lib/rpt_data_analysis.js

@@ -150,14 +150,14 @@ const gatherGcl = {
             if (((prop === 'total_price' || prop.indexOf('tp') > 0) ||
                 (prop === 'quantity' || prop.indexOf('qty') > 0)) && data[prop])
             {
-                gcl[prop] = ctx.helper.add(gcl[f], data[f]);
+                gcl[prop] = ctx.helper.add(gcl[prop], data[prop]);
             }
         }
     },
     _gatherTpField: function (ctx, gcl, data) {
         for (const prop in data) {
             if ((prop === 'total_price' || prop.indexOf('tp') > 0) && data[prop]) {
-                gcl[prop] = ctx.helper.add(gcl[f], data[f]);
+                gcl[prop] = ctx.helper.add(gcl[prop], data[prop]);
             }
         }
     },