diff --git a/src/pages/Replenishment.tsx b/src/pages/Replenishment.tsx index 7deb029..f9db27c 100644 --- a/src/pages/Replenishment.tsx +++ b/src/pages/Replenishment.tsx @@ -249,7 +249,11 @@ const Replenishment = () => { const statusRows = statusFilter === 'all' ? searchedRows - : searchedRows.filter(row => row.status === statusFilter); + : searchedRows.filter(row => ( + statusFilter === 'need' + ? row.suggestedQuantity > 0 + : row.status === statusFilter + )); return [...statusRows].sort((a, b) => { switch (sortBy) {