修改库存不足

This commit is contained in:
2023-03-28 09:08:37 +08:00
parent f4d8428b9e
commit e7bff9c66d
8 changed files with 343 additions and 1 deletions
+1 -1
View File
@@ -1082,7 +1082,7 @@ class UserDoctorService extends BaseService
}
// 检测药品库存数据
if ($item['prescription_product_num'] > $product['ProductPlatformAmount']['real_stock']) {
if ($item['prescription_product_num'] > $product['ProductPlatformAmount']['stock']) {
// 库存不足
Db::rollBack();
return fail(HttpEnumCode::HTTP_ERROR, "药品" . $product['product_name'] . "库存不足");