Skip to content

Commit

Permalink
Improved: showing not counted in case of rejected item with no qty (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Nov 12, 2024
1 parent 8e37439 commit ce22e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
"Update time zone": "Update time zone",
"Upload": "Upload",
"Upload inventory count": "Upload inventory count",
"units": "units",
"units": "{count} units",
"Username": "Username",
"Variance": "Variance",
"variance": "variance",
Expand Down
4 changes: 2 additions & 2 deletions src/views/ProductItemList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<p>{{ getProductIdentificationValue(productStoreSettings["productIdentificationPref"].secondaryId, getProduct(item.productId)) }}</p>
</ion-label>
<ion-badge slot="end" color="danger" v-if="item.itemStatusId === 'INV_COUNT_REJECTED'">
{{ item.quantity === 0 ? 0 : item.quantity }} {{ translate("units") }}
{{ (!item.quantity && item.quantity !== 0) ? translate("not counted") : translate("units", { count: item.quantity }) }}
</ion-badge>
<ion-note v-else-if="item.itemStatusId === 'INV_COUNT_COMPLETED'" color="success">
{{ translate("accepted") }}
</ion-note>
<ion-badge slot="end" v-else-if="item.quantity >= 0 && item.statusId === 'INV_COUNT_ASSIGNED'">
{{ item.quantity }} {{ translate("units") }}
{{ translate("units", { count: item.quantity }) }}
</ion-badge>
<ion-note v-else-if="item.quantity === undefined || item.quantity === null && item.statusId === 'INV_COUNT_ASSIGNED'">
{{ translate("pending") }}
Expand Down

0 comments on commit ce22e91

Please sign in to comment.