feat: 修正庫存與撥補單邏輯並整合文件
1. 修復倉庫統計數據加總與樣式。 2. 修正可用庫存計算邏輯(排除不可銷售倉庫)。 3. 撥補單商品列表加入批號與效期顯示。 4. 修正撥補單儲存邏輯以支援精確批號轉移。 5. 整合 FEATURES.md 至 README.md。
This commit is contained in:
@@ -20,7 +20,8 @@ import {
|
||||
FileText,
|
||||
Wallet,
|
||||
BarChart3,
|
||||
FileSpreadsheet
|
||||
FileSpreadsheet,
|
||||
BookOpen
|
||||
} from "lucide-react";
|
||||
import { toast, Toaster } from "sonner";
|
||||
import { useState, useEffect, useMemo } from "react";
|
||||
@@ -133,8 +134,15 @@ export default function AuthenticatedLayout({
|
||||
id: "production-management",
|
||||
label: "生產管理",
|
||||
icon: <Boxes className="h-5 w-5" />,
|
||||
permission: "production_orders.view",
|
||||
permission: ["production_orders.view", "recipes.view"],
|
||||
children: [
|
||||
{
|
||||
id: "recipe-list",
|
||||
label: "配方管理",
|
||||
icon: <BookOpen className="h-4 w-4" />,
|
||||
route: "/recipes",
|
||||
permission: "recipes.view",
|
||||
},
|
||||
{
|
||||
id: "production-order-list",
|
||||
label: "生產工單",
|
||||
@@ -532,7 +540,7 @@ export default function AuthenticatedLayout({
|
||||
"flex-1 flex flex-col transition-all duration-300 min-h-screen overflow-auto",
|
||||
"lg:ml-64",
|
||||
isCollapsed && "lg:ml-20",
|
||||
"pt-16" // Always allow space for header
|
||||
"pt-16" // 始終為頁首保留空間
|
||||
)}>
|
||||
<div className="relative">
|
||||
<div className="container mx-auto px-6 pt-6 max-w-7xl">
|
||||
|
||||
Reference in New Issue
Block a user