Skip to content

Commit

Permalink
Merge pull request #548 from amansinghbais/#528-radio-ui
Browse files Browse the repository at this point in the history
Fixed: scanned count getting saved twice in the list state (#528)
  • Loading branch information
ymaheshwari1 authored Dec 26, 2024
2 parents a306b12 + 72e23ac commit ed20d18
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 @@ -590,7 +590,7 @@ async function saveCount(currentProduct: any, isScrollEvent = false) {
const items = JSON.parse(JSON.stringify(cycleCountItems.value.itemList))
items.map((item: any) => {
if(item.importItemSeqId === currentProduct.importItemSeqId) {
item.quantity = selectedCountUpdateType.value === "replace" ? inputCount.value : Number(inputCount.value) + Number(currentProduct.quantity || 0)
item.quantity = currentProduct.quantity
item.countedByGroupName = userProfile.value.userFullName
item.countedByUserLoginId = userProfile.value.username
}
Expand Down

0 comments on commit ed20d18

Please sign in to comment.