Skip to content

Commit

Permalink
Fixed: handling for the update cycle count behavior (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 23, 2024
1 parent 0488f5d commit c6b01f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/HardCountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

<ion-radio-group v-model="selectedCountUpdateType">
<ion-item>
<ion-radio justify="start" label-placement="end" value="new">
<ion-radio justify="start" label-placement="end" value="add">
<ion-label>
{{ translate("Add to existing count") }}
</ion-label>
Expand Down Expand Up @@ -234,7 +234,7 @@ const selectedSegment = ref("all");
let previousItem = {} as any;
const barcodeInputRef = ref();
const inputCount = ref("") as any;
const selectedCountUpdateType = ref("new");
const selectedCountUpdateType = ref("add");
const isScrolling = ref(false);
let isScanningInProgress = ref(false);
Expand Down Expand Up @@ -563,7 +563,7 @@ async function saveCount(currentProduct: any, isScrollEvent = false) {
const prevCount = currentProduct.scannedCount ? currentProduct.scannedCount : 0
item.countedByUserLoginId = userProfile.value.username
if(selectedCountUpdateType.value === "new") item.scannedCount = inputCount.value
if(selectedCountUpdateType.value === "replace") item.scannedCount = inputCount.value
else item.scannedCount = inputCount.value + prevCount
currentItem = item;
}
Expand Down

0 comments on commit c6b01f6

Please sign in to comment.