Forráskód Böngészése

Merge branch 'master-new-wgg' of wugg/phpstock into master-new

wugg 1 éve
szülő
commit
e9f863a1eb
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/report/controller/Stats.php

+ 1 - 1
app/report/controller/Stats.php

@@ -397,7 +397,7 @@ class Stats extends Base
 	    foreach ($list->items() as &$value){
 	    foreach ($list->items() as &$value){
 	        $value['stock_num'] = (new GoodStock())->where('spuCode',$value['spuCode'])->sum('usable_stock');
 	        $value['stock_num'] = (new GoodStock())->where('spuCode',$value['spuCode'])->sum('usable_stock');
 			$value['good_price'] = (new PurcheaseOrder())->where(['spuCode'=>$value['spuCode'],'order_source'=>0])->value('good_price',0);
 			$value['good_price'] = (new PurcheaseOrder())->where(['spuCode'=>$value['spuCode'],'order_source'=>0])->value('good_price',0);
-			$value['total_fee'] = bcmul(strval($value['good_price']),strval($value['good_num']),2);
+			$value['total_fee'] = bcmul(strval($value['good_price']),strval($value['num']),2);
 	      }
 	      }
        $this->success('获取成功',['result'=>$list->items(),'count'=>$list->total()]);
        $this->success('获取成功',['result'=>$list->items(),'count'=>$list->total()]);