Skip to content

Commit

Permalink
Merge pull request #591 from amansinghbais/#528-alert
Browse files Browse the repository at this point in the history
Fixed: recount alert opening in case of pending review counts with created item (#528)
  • Loading branch information
ymaheshwari1 authored Jan 9, 2025
2 parents c40c293 + d556d25 commit 4d60821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/CountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ async function scanProduct() {
element.scrollIntoView({ behavior: 'smooth' });
}
}, 0);
} else if(selectedItem.itemStatusId === "INV_COUNT_CREATED") {
} else if(selectedItem.statusId === "INV_COUNT_ASSIGNED" && selectedItem.itemStatusId === "INV_COUNT_CREATED") {
if((!selectedItem.quantity && selectedItem.quantity !== 0) || product.value.isRecounting) {
hasUnsavedChanges.value = true;
inputCount.value++
} else if(selectedItem.quantity >= 0 && selectedItem.itemStatusId !== "INV_COUNT_REJECTED" && selectedItem.itemStatusId !== "INV_COUNT_COMPLETED") {
} else if(selectedItem.quantity >= 0) {
openRecountAlert()
}
}
Expand Down

0 comments on commit 4d60821

Please sign in to comment.