import { Head, Link } from "@inertiajs/react"; import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout"; import { Button } from "@/Components/ui/button"; import { ArrowLeft } from "lucide-react"; import { Warehouse } from "@/types/warehouse"; import TransactionTable, { Transaction } from "@/Components/Warehouse/Inventory/TransactionTable"; import { getInventoryBreadcrumbs } from "@/utils/breadcrumb"; interface Props { warehouse: Warehouse; inventory: { id: string; productName: string; productCode: string; quantity: number; }; transactions: Transaction[]; } export default function InventoryHistory({ warehouse, inventory, transactions }: Props) { return (
{/* Header */}
倉庫管理 / 庫存管理 / 庫存異動紀錄

庫存異動紀錄

商品:{inventory.productName} {inventory.productCode && ({inventory.productCode})}

{/* Content */}

異動流水帳

目前庫存:{inventory.quantity}
); }