From a43466e392dfc42a4e4a8e9559e0f1a8425a186b Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 12 Nov 2024 19:28:18 +0530 Subject: [PATCH] Improving: reseting the input count each time a new product comes in view (#494) --- src/views/CountDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/CountDetail.vue b/src/views/CountDetail.vue index a4323001..059dc1e2 100644 --- a/src/views/CountDetail.vue +++ b/src/views/CountDetail.vue @@ -423,7 +423,7 @@ async function scanProduct() { element.scrollIntoView({ behavior: 'smooth' }); } }, 0); - if(!selectedItem.quantity && selectedItem.quantity !== 0) inputCount.value = "" + inputCount.value = "" } else if(selectedItem.itemStatusId === "INV_COUNT_CREATED") { if((!selectedItem.quantity && selectedItem.quantity !== 0) || product.value.isRecounting) { hasUnsavedChanges.value = true;