diff --git a/README.md b/README.md index 737ade5..92d04ce 100644 --- a/README.md +++ b/README.md @@ -180,4 +180,4 @@ docker compose down - **樣式**: 全面使用 Tailwind CSS,避免手寫 CSS。 - **多租戶**: - 中央邏輯 (Landlord) 與租戶邏輯 (Tenant) 分離。 - - 租戶路由定義於 `routes/tenant.php` (但在本專案架構中,大部分路由在 `web.php` 並透過 Middleware 判斷環境)。 + - 租戶路由定義於 `routes/tenant.php` (但在本專案架構中,大部分路由在 `web.php` 並透過 Middleware 判斷環境)。 \ No newline at end of file diff --git a/resources/js/Pages/Production/Create.tsx b/resources/js/Pages/Production/Create.tsx index 38a0f8f..cd8f936 100644 --- a/resources/js/Pages/Production/Create.tsx +++ b/resources/js/Pages/Production/Create.tsx @@ -29,10 +29,7 @@ interface Warehouse { name: string; } -interface Unit { - id: number; - name: string; -} + interface InventoryOption { id: number; @@ -81,10 +78,9 @@ interface BomItem { interface Props { products: Product[]; warehouses: Warehouse[]; - units: Unit[]; } -export default function Create({ products, warehouses, units }: Props) { +export default function Create({ products, warehouses }: Props) { const [selectedWarehouse, setSelectedWarehouse] = useState(""); // 產出倉庫 // 快取對照表:product_id -> inventories across warehouses const [productInventoryMap, setProductInventoryMap] = useState>({});