Skip to content

Commit

Permalink
Improved: showing loader until fetching all the count items and fixed…
Browse files Browse the repository at this point in the history
… units label showing in case of no quantity in no match found (#528)
  • Loading branch information
amansinghbais committed Jan 9, 2025
1 parent 745d21a commit 5d4bd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/ProductItemList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<ion-note v-else-if="item.itemStatusId === 'INV_COUNT_COMPLETED'" color="success">
{{ translate("accepted") }}
</ion-note>
<ion-badge slot="end" v-else-if="item.statusId === 'INV_COUNT_ASSIGNED' && ((item.quantity !== undefined && item.quantity !== null) || (item.scannedCount !== undefined && item.scannedCount !== null))">
<ion-badge slot="end" v-else-if="item.statusId === 'INV_COUNT_ASSIGNED' && ((item.quantity !== undefined && item.quantity !== null) || (item.scannedCount !== undefined && item.scannedCount !== null && item.scannedCount !== ''))">
{{ translate("units", { count: isItemAlreadyAdded(item) ? item.quantity : item.scannedCount }) }}
</ion-badge>
<ion-note v-else-if="item.quantity === undefined || item.quantity === null && item.statusId === 'INV_COUNT_ASSIGNED'">
<ion-note v-else-if="(item.quantity === undefined || item.quantity === null || item.quantity === '') && item.statusId === 'INV_COUNT_ASSIGNED'">
{{ translate("pending") }}
</ion-note>
<ion-note v-else-if="item.quantity >= 0 && item.statusId === 'INV_COUNT_REVIEW'">
Expand Down

0 comments on commit 5d4bd3c

Please sign in to comment.