fix: 移除不存在的 is_active 欄位引用
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 56s

This commit is contained in:
2026-02-23 13:52:59 +08:00
parent 62dcf04e95
commit e85c1fa95a

View File

@@ -599,9 +599,8 @@ class InventoryService implements InventoryServiceInterface
*/ */
public function findOrCreateWarehouseByName(string $warehouseName) public function findOrCreateWarehouseByName(string $warehouseName)
{ {
// 1. 優先查找名稱完全匹配且啟用的倉庫(不限類型) // 1. 優先查找名稱完全匹配的倉庫(不限類型)
$warehouse = Warehouse::where('name', $warehouseName) $warehouse = Warehouse::where('name', $warehouseName)
->where('is_active', true)
->first(); ->first();
if ($warehouse) { if ($warehouse) {
@@ -614,7 +613,6 @@ class InventoryService implements InventoryServiceInterface
[ [
'code' => 'INT-RETAIL-001', 'code' => 'INT-RETAIL-001',
'type' => 'retail', 'type' => 'retail',
'is_active' => true,
] ]
); );
} }