Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: toast message to be shown in case of scanning completed item (#367) #370

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Proceed": "Proceed",
"Product Identifier": "Product Identifier",
"Product identifier preference updated": "Product identifier preference updated",
"Product is already received:": "Product is already received: {itemName}",
"Purchase Order": "Purchase Order",
"Purchase Order Details": "Purchase Order Details",
"Purchase Orders": "Purchase Orders",
Expand Down
2 changes: 1 addition & 1 deletion src/views/PurchaseOrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default defineComponent({
const result = await this.store.dispatch('order/updateProductCount', payload)

if(result.isCompleted) {
showToast(translate("Scanned item is not present within the shipment:", { itemName: payload }))
showToast(translate("Product is already received:", { itemName: payload }))
} else if(result.isProductFound) {
showToast(translate("Scanned successfully.", { itemName: payload }))
this.lastScannedId = payload
Expand Down
Loading