diff --git a/src/app/api/jo/actions.ts b/src/app/api/jo/actions.ts index 02ca263..8d67ac1 100644 --- a/src/app/api/jo/actions.ts +++ b/src/app/api/jo/actions.ts @@ -1661,6 +1661,7 @@ export interface DrinkProductionQtyResponse { jobOrders?: DrinkProductionQtyJobOrderDetail[]; } +/** FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20 */ export const fetchDrinkProductionQty = cache(async (date?: string) => { const params = new URLSearchParams(); if (date) params.set("date", date); diff --git a/src/components/ItemTracing/ItemTracingFlowGraphSearch.tsx b/src/components/ItemTracing/ItemTracingFlowGraphSearch.tsx index bd9d6e9..58fbbe0 100644 --- a/src/components/ItemTracing/ItemTracingFlowGraphSearch.tsx +++ b/src/components/ItemTracing/ItemTracingFlowGraphSearch.tsx @@ -25,7 +25,7 @@ type Props = { onClear: () => void; }; -/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.0 | 2026-07-17 */ +/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.1 | 2026-07-20 */ const ItemTracingFlowGraphSearch: React.FC = ({ query, matchCount, diff --git a/src/components/ItemTracing/ItemTracingNodeDetailPanel.tsx b/src/components/ItemTracing/ItemTracingNodeDetailPanel.tsx index 6fb9422..ed1978e 100644 --- a/src/components/ItemTracing/ItemTracingNodeDetailPanel.tsx +++ b/src/components/ItemTracing/ItemTracingNodeDetailPanel.tsx @@ -30,7 +30,7 @@ type Props = { onClose?: () => void; }; -/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.0 | 2026-07-17 */ +/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.1 | 2026-07-20 */ const ItemTracingNodeDetailPanel: React.FC = ({ node, onClose }) => { const { t } = useTranslation("itemTracing"); diff --git a/src/components/ItemTracing/ItemTracingSections.tsx b/src/components/ItemTracing/ItemTracingSections.tsx index b820638..a174648 100644 --- a/src/components/ItemTracing/ItemTracingSections.tsx +++ b/src/components/ItemTracing/ItemTracingSections.tsx @@ -46,7 +46,7 @@ type Props = { onTrace?: (params: TraceParams) => void; }; -/** FP-MTMS Version Checklist | Functions Ref. No. 17 | v1.0.0 | 2026-07-17 */ +/** FP-MTMS Version Checklist | Functions Ref. No. 17 | v1.0.1 | 2026-07-20 */ const ItemTracingSections: React.FC = ({ data, compiledGraph, onTrace }) => { const { t } = useTranslation("itemTracing"); const [tab, setTab] = useState(0); diff --git a/src/components/ItemTracing/TraceFlowNodes.tsx b/src/components/ItemTracing/TraceFlowNodes.tsx index 43d32dc..8a116c7 100644 --- a/src/components/ItemTracing/TraceFlowNodes.tsx +++ b/src/components/ItemTracing/TraceFlowNodes.tsx @@ -73,6 +73,7 @@ const GroupCollapseButton = ({ ); +/** FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20 */ export const TraceFlowEventNode = memo(function TraceFlowEventNode({ id, data, diff --git a/src/components/ItemTracing/buildTraceGraphNodes.ts b/src/components/ItemTracing/buildTraceGraphNodes.ts index 0ad7a17..62ad86a 100644 --- a/src/components/ItemTracing/buildTraceGraphNodes.ts +++ b/src/components/ItemTracing/buildTraceGraphNodes.ts @@ -564,6 +564,7 @@ const buildInboundOriginNodes = ( return { nodes, nextSeq: seq }; }; +/** FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20 */ export const buildTraceGraphNodes = ( data: ItemLotTraceResponse, labels: TraceGraphDetailLabels, diff --git a/src/components/ItemTracing/exportItemLotTraceXlsx.ts b/src/components/ItemTracing/exportItemLotTraceXlsx.ts index d8776f3..01c2c7e 100644 --- a/src/components/ItemTracing/exportItemLotTraceXlsx.ts +++ b/src/components/ItemTracing/exportItemLotTraceXlsx.ts @@ -889,7 +889,7 @@ export const buildItemLotTraceSheets = ( export const ITEM_LOT_TRACE_SHEET_NAMES = Object.values(SHEET); -/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.0 | 2026-07-17 */ +/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.1 | 2026-07-20 */ export const exportItemLotTraceXlsx = ( data: ItemLotTraceResponse, compiledGraph: CompiledTraceGraph, diff --git a/src/components/ItemTracing/traceLabelUtils.ts b/src/components/ItemTracing/traceLabelUtils.ts index 5aae4a4..af0408c 100644 --- a/src/components/ItemTracing/traceLabelUtils.ts +++ b/src/components/ItemTracing/traceLabelUtils.ts @@ -178,6 +178,7 @@ export const resolveDoOutboundChipFlags = ( }); /** + * FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20 * Outbound qty color (DO_OUT / JO_OUT / MATERIAL_PICK): * 改數 → orange; else qty > 0 → green; qty ≤ 0 → red. */ diff --git a/src/components/ItemTracing/traceStockTakeUtils.ts b/src/components/ItemTracing/traceStockTakeUtils.ts index d192736..730802f 100644 --- a/src/components/ItemTracing/traceStockTakeUtils.ts +++ b/src/components/ItemTracing/traceStockTakeUtils.ts @@ -32,6 +32,7 @@ export const resolveStockTakeBookQty = ( }; /** + * FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20 * Accepted physical qty used for variance / posting decision. * Prefer lastSelect (1=first, 2=second, 3=approver), then fallback chain, then line finalQty. * Incomplete rounds (no count yet) must not surface as 0 via COALESCE(finalQty, 0). diff --git a/src/components/ProductionProcess/DrinkProductionQtyDashboard.tsx b/src/components/ProductionProcess/DrinkProductionQtyDashboard.tsx index 9dd30d3..94626e9 100644 --- a/src/components/ProductionProcess/DrinkProductionQtyDashboard.tsx +++ b/src/components/ProductionProcess/DrinkProductionQtyDashboard.tsx @@ -47,6 +47,7 @@ const formatProductionDate = (value: string | null | undefined): string => { const getRowKey = (row: DrinkProductionQtyResponse, idx: number): string => `${row.itemCode || "unknown"}-${idx}`; +/** FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20 */ const DrinkProductionQtyDashboard: React.FC = () => { const { t } = useTranslation(["common", "jo", "productionProcess"]); const [data, setData] = useState([]); diff --git a/src/components/ProductionProcess/ProductionProcessPage.tsx b/src/components/ProductionProcess/ProductionProcessPage.tsx index 09e4772..d060c7b 100644 --- a/src/components/ProductionProcess/ProductionProcessPage.tsx +++ b/src/components/ProductionProcess/ProductionProcessPage.tsx @@ -24,6 +24,7 @@ interface ProductionProcessPageProps { const STORAGE_KEY = 'productionProcess_selectedMatchingStock'; +/** FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20 */ const ProductionProcessPage: React.FC = ({ printerCombo }) => { const { t } = useTranslation(["common"]); const [selectedProcessId, setSelectedProcessId] = useState(null);