This commit is contained in:
shengchanzhe 2023-10-27 21:38:02 +08:00
parent 64ed1355bc
commit 251a7bb1c3

View File

@ -2368,6 +2368,7 @@ class ProductRepository extends BaseRepository
if (!$model->save($data)) {
throw new \Exception('入库失败', 500);
}
Db::commit();
return true;
}
$stockIn = $orderProduct['product_num'] ?? 0;