cqp 2 mesi fa
parent
commit
49e8870fa7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Service/DispatchService.php

+ 1 - 1
app/Service/DispatchService.php

@@ -489,7 +489,7 @@ class DispatchService extends Service
             $last_process = end($tmp);
             $dispatch_quantity = $last_process['dispatch_quantity'] ?? 0;
             $data['data'][$key]['dispatch_quantity'] = $dispatch_quantity;
-            $data['data'][$key]['not_dispatch_quantity'] = $value['production_quantity'] - $dispatch_quantity;
+            $data['data'][$key]['not_dispatch_quantity'] = bcsub($value['production_quantity'], $dispatch_quantity,3);
             $data['data'][$key]['out_order_no_time'] = $value['out_order_no_time'] ? date('Y-m-d',$value['out_order_no_time']) : '';
             $data['data'][$key]['out_checker_time'] = $value['out_checker_time'] ? date('Y-m-d',$value['out_checker_time']) : '';
             $data['data'][$key]['production_time'] = $value['production_time'] ? date('Y-m-d',$value['production_time']) : '';