Explorar o código

引用产品资料优化

qiuenguang hai 1 ano
pai
achega
9048bde81b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/api/controller/WorkOrder.php

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

@@ -2269,7 +2269,7 @@ class WorkOrder extends Api
             }else{
                 $number = $production[$key];
             }
-            if ((int)$value[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
+            if ((int)$processList[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
                 $number = $number/(int)$value['Gy0_ls'];
             }
             array_push($production,ceil($number-$wastage));