更新
This commit is contained in:
parent
64ed1355bc
commit
251a7bb1c3
@ -2368,6 +2368,7 @@ class ProductRepository extends BaseRepository
|
|||||||
if (!$model->save($data)) {
|
if (!$model->save($data)) {
|
||||||
throw new \Exception('入库失败', 500);
|
throw new \Exception('入库失败', 500);
|
||||||
}
|
}
|
||||||
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$stockIn = $orderProduct['product_num'] ?? 0;
|
$stockIn = $orderProduct['product_num'] ?? 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user