diff --git a/src/views/CountDetail.vue b/src/views/CountDetail.vue index ea0e163b..7b2271dc 100644 --- a/src/views/CountDetail.vue +++ b/src/views/CountDetail.vue @@ -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() } }