|
|
@@ -205,7 +205,7 @@ class OrderService extends Service
|
|
|
foreach ($data['details'] as $value){
|
|
|
if(empty($value['code'])) return [false, '物料编码不能为空'];
|
|
|
if(empty($value['title'])) return [false, '物料名称不能为空'];
|
|
|
- $res = $this->checkNumber($data['quantity'],2,'positive');
|
|
|
+ $res = $this->checkNumber($value['quantity'],2,'positive');
|
|
|
if(! $res['valid']) return [false,'物料数量:' . $res['error']];
|
|
|
$total = bcadd($total, $value['quantity'],2);
|
|
|
}
|