|
@@ -489,7 +489,7 @@ class DispatchService extends Service
|
|
$last_process = end($tmp);
|
|
$last_process = end($tmp);
|
|
$dispatch_quantity = $last_process['dispatch_quantity'] ?? 0;
|
|
$dispatch_quantity = $last_process['dispatch_quantity'] ?? 0;
|
|
$data['data'][$key]['dispatch_quantity'] = $dispatch_quantity;
|
|
$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_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]['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']) : '';
|
|
$data['data'][$key]['production_time'] = $value['production_time'] ? date('Y-m-d',$value['production_time']) : '';
|