Skip to content

Commit

Permalink
Merge pull request #511 from amansinghbais/#508
Browse files Browse the repository at this point in the history
Improved: conditions to show rejected and completed items in the counted tab (#508)
  • Loading branch information
ravilodhi authored Nov 12, 2024
2 parents 901cc7b + 38fd983 commit bafb1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/CountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ const itemsList = computed(() => {
if (selectedSegment.value === 'all') {
return cycleCountItems.value.itemList;
} else if (selectedSegment.value === 'pending') {
return cycleCountItems.value.itemList.filter(item =>(item.quantity === undefined || item.quantity === null));
return cycleCountItems.value.itemList.filter(item =>(item.quantity === undefined || item.quantity === null) && item.itemStatusId === "INV_COUNT_CREATED");
} else if (selectedSegment.value === 'counted') {
return cycleCountItems.value.itemList.filter(item => item.quantity >= 0);
return cycleCountItems.value.itemList.filter(item => item.quantity >= 0 || (item.itemStatusId === 'INV_COUNT_REJECTED' || item.itemStatusId === 'INV_COUNT_COMPLETED'));
} else if (selectedSegment.value === 'notCounted') {
return cycleCountItems.value.itemList.filter(item => !item.quantity && item.statusId === "INV_COUNT_REVIEW");
} else if (selectedSegment.value === 'rejected') {
Expand Down

0 comments on commit bafb1a2

Please sign in to comment.