From d7ce380e265169dc521b8771a7d4111aa9100cb5 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 31 Dec 2024 12:53:30 +0530 Subject: [PATCH] Improved: showing accepted or rejected status in the items in the assigned status (#565) --- src/components/AssignedCountPopover.vue | 8 ++++++-- src/views/AssignedDetail.vue | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/AssignedCountPopover.vue b/src/components/AssignedCountPopover.vue index 49403f6c..d20d1bcc 100644 --- a/src/components/AssignedCountPopover.vue +++ b/src/components/AssignedCountPopover.vue @@ -2,11 +2,11 @@ {{ getProductIdentificationValue(productStoreSettings["productIdentificationPref"].primaryId, getProduct(item.productId)) || getProduct(item.productId).productName }} - + {{ translate("Last counted")}} {{ timeFromNow(item.lastCountedDate) }} - + {{ translate("Remove from count")}} @@ -39,4 +39,8 @@ const productStoreSettings = computed(() => store.getters["user/getProductStoreS function updateItem(action: string) { popoverController.dismiss({ itemAction: action }) } + +function isRemoveItemEligible(item: any) { + return item.itemStatusId !== 'INV_COUNT_REJECTED' && item.itemStatusId !== 'INV_COUNT_COMPLETED' && !item.quantity; +} \ No newline at end of file diff --git a/src/views/AssignedDetail.vue b/src/views/AssignedDetail.vue index 972c81cb..06ae0c23 100644 --- a/src/views/AssignedDetail.vue +++ b/src/views/AssignedDetail.vue @@ -77,6 +77,7 @@ +

{{ translate(item.itemStatusId === "INV_COUNT_COMPLETED" ? "accepted" : "rejected") }}

{{ getProductIdentificationValue(productStoreSettings["productIdentificationPref"].primaryId, getProduct(item.productId)) || getProduct(item.productId).productName }}

{{ getProductIdentificationValue(productStoreSettings["productIdentificationPref"].secondaryId, getProduct(item.productId)) }}