From 18d2b6e407e85e8228fae79ecdd8c396c62e9c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Tue, 7 Jul 2026 13:21:02 -0300 Subject: [PATCH] Fix replenishment need filter count --- src/pages/Replenishment.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {