cqpCow hace 2 años
padre
commit
02994ef850
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Service/FyyOrderService.php

+ 1 - 0
app/Service/FyyOrderService.php

@@ -145,6 +145,7 @@ class FyyOrderService extends Service
             $data['data'][$key]['product_quantity_on_hand'] = $detailMap[$keys] ?? 0;
         }
         $data['order_quantity'] = array_sum(array_column($data['data'], 'order_quantity'));
+        $data['finished_num'] = array_sum(array_column($data['data'], 'finished_num'));
 
         return $data;
     }