Fix replenishment need filter count
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user