Skip to content

Commit

Permalink
Fixed: reseting input count to empty string on bringing it to view fo…
Browse files Browse the repository at this point in the history
…r the first time (hotwax#494)
  • Loading branch information
amansinghbais committed Nov 12, 2024
1 parent 52b6b8c commit 364fb1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/CountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ async function scanProduct() {
element.scrollIntoView({ behavior: 'smooth' });
}
}, 0);
if(!selectedItem.quantity && selectedItem.quantity !== 0) 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 364fb1f

Please sign in to comment.