From 9743f2a907fa913562d79aefa4d6833b5a5dfb94 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 21 Jan 2025 12:18:56 +0530 Subject: [PATCH] Improved: added a flag for qoh computation while fetching cycle count items (#655) --- src/views/CountDetail.vue | 2 +- src/views/HardCountDetail.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/CountDetail.vue b/src/views/CountDetail.vue index 4b186edc..ebd57168 100644 --- a/src/views/CountDetail.vue +++ b/src/views/CountDetail.vue @@ -299,7 +299,7 @@ const scrollingContainerRef = ref(); onIonViewDidEnter(async() => { emitter.emit("presentLoader"); - await Promise.allSettled([await fetchCycleCount(), store.dispatch("count/fetchCycleCountItems", { inventoryCountImportId : props?.id, isSortingRequired: true }), store.dispatch("user/getProductStoreSetting", currentFacility.value?.productStore?.productStoreId)]) + await Promise.allSettled([await fetchCycleCount(), store.dispatch("count/fetchCycleCountItems", { inventoryCountImportId : props?.id, isSortingRequired: true, computeQOH: productStoreSettings.value['showQoh'] ? "Y" : "N" }), store.dispatch("user/getProductStoreSetting", currentFacility.value?.productStore?.productStoreId)]) selectedSegment.value = 'all'; queryString.value = ''; previousItem = itemsList.value[0] diff --git a/src/views/HardCountDetail.vue b/src/views/HardCountDetail.vue index fd30c893..7ca64ba9 100644 --- a/src/views/HardCountDetail.vue +++ b/src/views/HardCountDetail.vue @@ -263,7 +263,7 @@ const isSubmittingForReview = ref(false); onIonViewDidEnter(async() => { emitter.emit("presentLoader"); - await Promise.allSettled([fetchCycleCount(), await store.dispatch("count/fetchCycleCountItems", { inventoryCountImportId : props?.id, isSortingRequired: false, isHardCount: true }), store.dispatch("user/getProductStoreSetting", currentFacility.value?.productStore?.productStoreId)]) + await Promise.allSettled([fetchCycleCount(), await store.dispatch("count/fetchCycleCountItems", { inventoryCountImportId : props?.id, isSortingRequired: false, isHardCount: true, computeQOH: productStoreSettings.value['showQoh'] ? "Y" : "N" }), store.dispatch("user/getProductStoreSetting", currentFacility.value?.productStore?.productStoreId)]) previousItem = itemsList.value[0]; await store.dispatch("product/currentProduct", itemsList.value?.length ? itemsList.value[0] : {}) barcodeInputRef.value?.$el?.setFocus();