Fix replenishment need filter count

This commit is contained in:
Cauê Faleiros
2026-07-07 13:21:02 -03:00
parent 5a5b9a035f
commit 18d2b6e407

View File

@@ -249,7 +249,11 @@ const Replenishment = () => {
const statusRows = statusFilter === 'all' const statusRows = statusFilter === 'all'
? searchedRows ? searchedRows
: searchedRows.filter(row => row.status === statusFilter); : searchedRows.filter(row => (
statusFilter === 'need'
? row.suggestedQuantity > 0
: row.status === statusFilter
));
return [...statusRows].sort((a, b) => { return [...statusRows].sort((a, b) => {
switch (sortBy) { switch (sortBy) {