Преглед изворни кода

getProjectGLJNewData basePrice is not defined

vian пре 5 година
родитељ
комит
947bbdc84b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/main/facade/ration_facade.js

+ 1 - 1
modules/main/facade/ration_facade.js

@@ -979,7 +979,7 @@ function getProjectGLJNewData(tmp,projectId,ext){
       from:tmp.from?tmp.from:"std"
   };
   if(gljData.from == 'std' && ext && ext.priceField &&( tmp.priceProperty[ext.priceField]!= undefined && tmp.priceProperty[ext.priceField]!=null)){
-    basePrice = scMathUtil.roundTo(tmp.priceProperty[ext.priceField],-6);
+    const basePrice = scMathUtil.roundTo(tmp.priceProperty[ext.priceField],-6);
     gljData.base_price = basePrice;
     gljData.market_price = basePrice;
   }