Browse Source

超节损计算

qiuenguang 1 year ago
parent
commit
f9922b8c25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/OrderSuperLoss.php

+ 1 - 1
application/api/controller/OrderSuperLoss.php

@@ -440,7 +440,7 @@ class OrderSuperLoss extends Api
         //制程废品*ls
         $data['zcfp'] = $zzfp_data[0]['sczl_zcfp'] * $ls['Gy0_ls'] * $ls['Gy0_ks'];
         //废品数量
-        $wasteTotal = db('db_qczl')->where('qczl_gdbh',$order)->sum('qczl_fp');
+        $wasteTotal = db('db_qczl')->where('qczl_gdbh',$order)->where('qczl_yjno',$params['yjno'])->sum('qczl_fp');
         if (empty($wasteTotal)){
             $wasteTotal = 0;
         }