From 6f3ecd0c6ed1e9e4b1fca16e6f18161399c59177 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Fri, 3 Jan 2025 16:45:49 +0530 Subject: [PATCH 1/2] Fixed: scanned count not getting saved when matching manually (#556) --- src/views/HardCountDetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/HardCountDetail.vue b/src/views/HardCountDetail.vue index 87dd1dd3..34f8b0ff 100644 --- a/src/views/HardCountDetail.vue +++ b/src/views/HardCountDetail.vue @@ -481,7 +481,7 @@ async function updateCurrentItemInList(newItem: any, scannedValue: string) { updatedItem["isMatchNotFound"] = newItem?.importItemSeqId ? false : true let newCount = "" as any; - if(updatedItem && updatedItem.scannedId !== updatedProduct.scannedId && updatedItem?.scannedCount) { + if(updatedItem && updatedItem?.scannedCount) { newCount = updatedItem.scannedCount } else if(selectedSegment.value === "unmatched" && (inputCount.value || updatedItem.scannedCount)) { newCount = Number(inputCount.value || 0) + Number(updatedItem.scannedCount || 0) @@ -500,7 +500,7 @@ async function updateCurrentItemInList(newItem: any, scannedValue: string) { if(!hasError(resp)) { updatedItem["quantity"] = newCount delete updatedItem["scannedCount"]; - inputCount.value = "" + if(selectedSegment.value === "unmatched") inputCount.value = "" } } catch(error) { logger.error(error) From 409147976d381fff918eb19bcfb1658fe669d5ec Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Fri, 3 Jan 2025 16:50:29 +0530 Subject: [PATCH 2/2] Improved: making scannedId a key in case of unmatched product (#556) --- src/views/HardCountDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/HardCountDetail.vue b/src/views/HardCountDetail.vue index 34f8b0ff..471f1e56 100644 --- a/src/views/HardCountDetail.vue +++ b/src/views/HardCountDetail.vue @@ -29,7 +29,7 @@