diff --git a/apps/edr-freight-web/backoffice/src/components/warehouses/ReceiveInventoryModal.tsx b/apps/edr-freight-web/backoffice/src/components/warehouses/ReceiveInventoryModal.tsx index f1dad1f1e..f0cef75b1 100644 --- a/apps/edr-freight-web/backoffice/src/components/warehouses/ReceiveInventoryModal.tsx +++ b/apps/edr-freight-web/backoffice/src/components/warehouses/ReceiveInventoryModal.tsx @@ -925,7 +925,10 @@ function EligibleTab({ ), [rows, statusOptions], ); - const selectableRows = statusFilteredRows.filter(canReceiveBooking); + const controls = useListControls(statusFilteredRows, { + searchKeys: ['reference', 'customer', 'origin', 'destination', 'containerNumber', 'cargo', 'cargoDescription'], + }); + const selectableRows = controls.filteredRows.filter(canReceiveBooking); const allSelected = selectableRows.length > 0 && selected.size === selectableRows.length; const someSelected = selected.size > 0 && !allSelected; const pendingReceiveRows = useMemo( @@ -1085,7 +1088,7 @@ function EligibleTab({ - Selected: {selected.size} / {statusFilteredRows.length} eligible + Selected: {selected.size} / {controls.filteredRows.length} eligible