From f76c352288b8e0d78932957cd9437eeb936e5929 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Tue, 14 Jul 2026 12:21:51 +0800 Subject: [PATCH] jo match first fix --- src/components/Jodetail/JobPickExecutionsecondscan.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/Jodetail/JobPickExecutionsecondscan.tsx b/src/components/Jodetail/JobPickExecutionsecondscan.tsx index 1a22e8a..52b1a70 100644 --- a/src/components/Jodetail/JobPickExecutionsecondscan.tsx +++ b/src/components/Jodetail/JobPickExecutionsecondscan.tsx @@ -1206,12 +1206,10 @@ const JobPickExecution: React.FC = ({ filterArgs, onBack }) => { const completedMatchQty = Number(lot.matchQty ?? 0); const isSubmitted = lot.matchQty > 0; - const isUnavailable = - lot.lotAvailability === "expired" || - lot.lotAvailability === "status_unavailable" || - lot.lotAvailability === "rejected"; - - const rowLocked = itemCompleted || isUnavailable; + // Matching is post-pick: source lot available/unavailable must not lock the row. + // Still lock rejected lots and already-matched items. + const isRejected = lot.lotAvailability === "rejected"; + const rowLocked = itemCompleted || isRejected; return (