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