fix: 移除不存在的 is_active 欄位引用
This commit is contained in:
@@ -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,
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user