From 38fd983ed6872b97acb1b198eae1772049ac8406 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 12 Nov 2024 18:32:32 +0530 Subject: [PATCH] Improved: conditions to show rejected and completed items in the counted tab (#508) --- src/views/CountDetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/CountDetail.vue b/src/views/CountDetail.vue index f2bb4ea4..829797a5 100644 --- a/src/views/CountDetail.vue +++ b/src/views/CountDetail.vue @@ -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') {