fix(inventory): 修復倉庫低庫存警告計算與全站租戶名稱動態化
This commit is contained in:
@@ -8,7 +8,8 @@ import ProductDialog from "@/Components/Product/ProductDialog";
|
||||
import CategoryManagerDialog from "@/Components/Category/CategoryManagerDialog";
|
||||
import UnitManagerDialog, { Unit } from "@/Components/Unit/UnitManagerDialog";
|
||||
import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout";
|
||||
import { Head, router } from "@inertiajs/react";
|
||||
import { Head, router, usePage } from "@inertiajs/react";
|
||||
import { PageProps as GlobalPageProps } from "@/types/global";
|
||||
import { debounce } from "lodash";
|
||||
import Pagination from "@/Components/shared/Pagination";
|
||||
import { getBreadcrumbs } from "@/utils/breadcrumb";
|
||||
@@ -57,6 +58,7 @@ interface PageProps {
|
||||
}
|
||||
|
||||
export default function ProductManagement({ products, categories, units, filters }: PageProps) {
|
||||
const { branding } = usePage<GlobalPageProps>().props;
|
||||
const [searchTerm, setSearchTerm] = useState(filters.search || "");
|
||||
const [typeFilter, setTypeFilter] = useState<string>(filters.category_id || "all");
|
||||
const [perPage, setPerPage] = useState<string>(filters.per_page || "10");
|
||||
@@ -182,7 +184,7 @@ export default function ProductManagement({ products, categories, units, filters
|
||||
<Package className="h-6 w-6 text-primary-main" />
|
||||
商品資料管理
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">管理小小冰室原物料與成品資料</p>
|
||||
<p className="text-gray-500 mt-1">管理 {branding?.short_name || 'Star'} 原物料與成品資料</p>
|
||||
</div>
|
||||
|
||||
{/* Toolbar */}
|
||||
|
||||
Reference in New Issue
Block a user