wugg il y a 1 an
Parent
commit
b550841f3e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/admin/controller/CombindStock.php

+ 1 - 1
app/admin/controller/CombindStock.php

@@ -180,7 +180,7 @@ class CombindStock extends Base
 		                throw new \Exception( '未找到相关阶梯成本价格');
 		            }
 		            $origin_price = $origin['nake_total'];
-		            $stcoc=GoodStockInfo::AddBn($id,$bn,intval($row->stock_num),$origin_price);
+		            $stcoc=GoodStockInfo::AddBn(intval($id),$bn,intval($row->stock_num),floatval($origin_price) );
 		            if($stcoc==false)  throw new \Exception( '组合商品bn库存生成失败');
 		            $stockCodeLog= (new CombindStockInfo())->save(["stockCode"=>$row->stockCode,"flag"=>1,
 		            "stock_num"=>$row->stock_num,"bnCode"=>$bn,"origin_price"=>$origin_price]);