Skip to content

Commit 0f9eae3

Browse files
committed
Improved: showing item instead of items in label for counts with only 1 item counted (#555)
1 parent 39e625b commit 0f9eae3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"inventory variance": "inventory variance",
139139
"Instance Url": "Instance Url",
140140
"items": "items",
141+
"item counted": "item counted",
141142
"items counted": "items counted",
142143
"Item has been removed from the cycle count": "Item has been removed from the cycle count",
143144
"Item added to upload list": "Item added to upload list",

src/views/Count.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<p>{{ getDateWithOrdinalSuffix(count.createdDate) }}</p>
5959
</ion-label>
6060
</ion-card-title>
61-
<ion-note>{{ getCycleCountStats(count.inventoryCountImportId, count.countTypeEnumId === "HARD_COUNT") }} {{ translate("items counted") }}</ion-note>
61+
<ion-note>{{ getCycleCountStats(count.inventoryCountImportId, count.countTypeEnumId === "HARD_COUNT") }} {{ translate((count.countTypeEnumId === "HARD_COUNT" && getCycleCountStats(count.inventoryCountImportId, count.countTypeEnumId === "HARD_COUNT") === "1") ? "item counted" : "items counted") }}</ion-note>
6262
</ion-card-header>
6363
<ion-item>
6464
{{ translate("Due date") }}
@@ -83,7 +83,7 @@
8383
<p>{{ getDateWithOrdinalSuffix(count.createdDate) }}</p>
8484
</ion-label>
8585
</ion-card-title>
86-
<ion-note>{{ getCycleCountStats(count.inventoryCountImportId, count.countTypeEnumId === "HARD_COUNT") }} {{ translate("items counted") }}</ion-note>
86+
<ion-note>{{ getCycleCountStats(count.inventoryCountImportId, count.countTypeEnumId === "HARD_COUNT") }} {{ translate((count.countTypeEnumId === "HARD_COUNT" && getCycleCountStats(count.inventoryCountImportId, count.countTypeEnumId === "HARD_COUNT") === "1") ? "item counted" : "items counted") }}</ion-note>
8787
</ion-card-header>
8888
<div class="header">
8989
<div class="search">

0 commit comments

Comments
 (0)