Skip to content

Commit

Permalink
Merge pull request #547 from amansinghbais/#528-bugs
Browse files Browse the repository at this point in the history
Fixed: clearing inputCount post list updation in state (#528-bugs)
  • Loading branch information
ravilodhi authored Dec 26, 2024
2 parents 7a0b85d + 93dcc48 commit a306b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/HardCountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ async function saveCount(currentProduct: any, isScrollEvent = false) {
currentProduct.countedByGroupName = userProfile.value.userFullName
currentProduct.countedByUserLoginId = userProfile.value.username
currentProduct.isRecounting = false;
inputCount.value = '';
const items = JSON.parse(JSON.stringify(cycleCountItems.value.itemList))
items.map((item: any) => {
if(item.importItemSeqId === currentProduct.importItemSeqId) {
Expand All @@ -596,6 +595,7 @@ async function saveCount(currentProduct: any, isScrollEvent = false) {
item.countedByUserLoginId = userProfile.value.username
}
})
inputCount.value = '';
await store.dispatch('count/updateCycleCountItems', items);
if(!isScrollEvent) await store.dispatch('product/currentProduct', currentProduct);
} else {
Expand Down

0 comments on commit a306b12

Please sign in to comment.