Skip to content

Commit a90af56

Browse files
committed
Fixed: recount alert opening in case of pending review counts with created item (#528)
1 parent c40c293 commit a90af56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/CountDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ async function scanProduct() {
413413
element.scrollIntoView({ behavior: 'smooth' });
414414
}
415415
}, 0);
416-
} else if(selectedItem.itemStatusId === "INV_COUNT_CREATED") {
416+
} else if(selectedItem.statusId === "INV_COUNT_ASSIGNED" && selectedItem.itemStatusId === "INV_COUNT_CREATED") {
417417
if((!selectedItem.quantity && selectedItem.quantity !== 0) || product.value.isRecounting) {
418418
hasUnsavedChanges.value = true;
419419
inputCount.value++

0 commit comments

Comments
 (0)