Merge pull request 'feat: 修改库存管理逻辑,增强库存检查与错误处理,优化代码结构' (#124) from dev into main

Reviewed-on: #124
This commit is contained in:
mkm 2024-08-10 21:17:04 +08:00
commit b72f371a0d

View File

@ -447,7 +447,7 @@ class StoreProductLogic extends BaseLogic
];
StoreBranchProductAttrValue::create($arr);
if ($product_arr['stock'] > 0) {
self::storage($find, $store_id, $admin_id, $product_arr,$warehouse_id);
self::storage($find, $store_id, $admin_id, $product_arr,1,$warehouse_id);
}
Db::commit();
return true;