From e85c1fa95a835dec9b78abaf325b741021a14221 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Mon, 23 Feb 2026 13:52:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=20is=5Factive=20=E6=AC=84=E4=BD=8D=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Modules/Inventory/Services/InventoryService.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, ] ); }