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