Przeglądaj źródła

jo match first fix

production
CANCERYS\kw093 8 godzin temu
rodzic
commit
f76c352288
1 zmienionych plików z 4 dodań i 6 usunięć
  1. +4
    -6
      src/components/Jodetail/JobPickExecutionsecondscan.tsx

+ 4
- 6
src/components/Jodetail/JobPickExecutionsecondscan.tsx Wyświetl plik

@@ -1206,12 +1206,10 @@ const JobPickExecution: React.FC<Props> = ({ filterArgs, onBack }) => {
const completedMatchQty = Number(lot.matchQty ?? 0); const completedMatchQty = Number(lot.matchQty ?? 0);
const isSubmitted = 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 ( return (
<TableRow <TableRow
key={`${lot.pickOrderLineId}-${lot.lotId}`} key={`${lot.pickOrderLineId}-${lot.lotId}`}


Ładowanie…
Anuluj
Zapisz