diff --git a/src/locales/en.json b/src/locales/en.json index 75e5fc16..97bf2b16 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -26,7 +26,6 @@ "Location": "Location", "Failed to receive shipment": "Failed to receive shipment", "Failed to receive some of the items": "Failed to receive some of the items", - "Failed to scan:": "Failed to scan: {itemName}", "Failed to update product identifier preference": "Failed to update product identifier preference", "facility location": "facility location", "Facility locations were not found corresponding to destination facility of return shipment. Please add facility locations to avoid receive return shipment failure.": "Facility locations were not found corresponding to destination facility of return shipment. Please add facility locations to avoid receive return shipment failure.", @@ -89,6 +88,7 @@ "Scan ASN to start receiving": "Scan ASN to start receiving", "Scan barcodes to receive them": "Scan barcodes to receive them", "Scan items": "Scan items", + "Scanned item is not present within the shipment:": "Scanned item is not present within the shipment: {itemName}", "Scanned successfully.": "Scanned {itemName} successfully.", "secondary identifier": "secondary identifier", "Search": "Search", @@ -127,4 +127,4 @@ "Version: ": "Version: {appVersion}", "You do not have permission to access this page": "You do not have permission to access this page", "ZeroQuantity": "ZeroQuantity" -} \ No newline at end of file +} diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 7a2b95f2..a2fe5334 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -48,7 +48,7 @@ const actions: ActionTree = { commit(types.ORDER_CURRENT_UPDATED, state.current ) showToast(translate("Scanned successfully.", { itemName: payload })) } else { - showToast(translate("Failed to scan:", { itemName: payload })) + showToast(translate("Scanned item is not present within the shipment:", { itemName: payload })) } }, async addOrderItem ({ commit }, payload) { diff --git a/src/store/modules/return/actions.ts b/src/store/modules/return/actions.ts index 8bdbb01c..f959b25d 100644 --- a/src/store/modules/return/actions.ts +++ b/src/store/modules/return/actions.ts @@ -40,7 +40,7 @@ const actions: ActionTree = { commit(types.RETURN_CURRENT_UPDATED, state); showToast(translate("Scanned successfully.", { itemName: payload })) } else { - showToast(translate("Failed to scan:", { itemName: payload })) + showToast(translate("Scanned item is not present within the shipment:", { itemName: payload })) } }, async setCurrent ({ commit, state }, payload) { @@ -199,4 +199,4 @@ const actions: ActionTree = { } } -export default actions; \ No newline at end of file +export default actions; diff --git a/src/store/modules/shipment/actions.ts b/src/store/modules/shipment/actions.ts index 88abc451..bc799480 100644 --- a/src/store/modules/shipment/actions.ts +++ b/src/store/modules/shipment/actions.ts @@ -50,7 +50,7 @@ const actions: ActionTree = { commit(types.SHIPMENT_CURRENT_UPDATED, state); showToast(translate("Scanned successfully.", { itemName: payload })) } else { - showToast(translate("Failed to scan:", { itemName: payload })) + showToast(translate("Scanned item is not present within the shipment:", { itemName: payload })) } }, async setCurrent ({ commit }, payload) {