Skip to content

Commit

Permalink
Improving: reseting the input count each time a new product comes in …
Browse files Browse the repository at this point in the history
…view (#494)
  • Loading branch information
amansinghbais committed Nov 12, 2024
1 parent 364fb1f commit a43466e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/CountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a43466e

Please sign in to comment.