From b1e9d7f94c6738b0e4c39cf01d09b43b0d1f7ea8 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Wed, 12 Jul 2023 11:45:23 +0530 Subject: [PATCH] Improved: the value to display order name in place of orderId(#175) --- src/locales/en.json | 2 +- src/locales/es.json | 2 +- src/store/modules/order/actions.ts | 2 ++ src/views/Completed.vue | 4 ++-- src/views/InProgress.vue | 4 ++-- src/views/OpenOrders.vue | 4 ++-- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 4e569e7b..454919ac 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -17,6 +17,7 @@ "Configuration Missing": "Configuration Missing", "Confirm": "Confirm", "Copied": "Copied { value }", + "Copied to clipboard": "Copied to clipboard", "Custom Label": "Custom Label", "Customer letter": "Customer letter", "Damaged": "Damaged", @@ -51,7 +52,6 @@ "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.": "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.", "Import shipped orders": "Import shipped orders", "In Progress": "In Progress", - "Internal Id copied to clipboard": "Internal Id copied to clipboard", "Last brokered": "Last brokered", "Loading": "Loading", "Login": "Login", diff --git a/src/locales/es.json b/src/locales/es.json index e66529bb..94e8113c 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -17,6 +17,7 @@ "Configuration Missing": "Configuration Missing", "Confirm": "Confirm", "Copied": "Copied { value }", + "Copied to clipboard": "Copied to clipboard", "Custom Label": "Custom Label", "Customer letter": "Customer letter", "Damaged": "Damaged", @@ -51,7 +52,6 @@ "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.": "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.", "Import shipped orders": "Import shipped orders", "In Progress": "En curso", - "Internal Id copied to clipboard": "Internal Id copied to clipboard", "Last brokered": "Última intermediación", "Loading": "Loading", "Login": "Acceso", diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 85c58632..2791d082 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -247,6 +247,7 @@ const actions: ActionTree = { customerName: orderItem.customerName, orderId: orderItem.orderId, orderDate: orderItem.orderDate, + orderName: orderItem.orderName, groupValue: order.groupValue, picklistBinId: orderItem.picklistBinId, items: order.doclist.docs, @@ -399,6 +400,7 @@ const actions: ActionTree = { customerName: orderItem.customerName, orderId: orderItem.orderId, orderDate: orderItem.orderDate, + orderName: orderItem.orderName, reservedDatetime: orderItem.reservedDatetime, groupValue: order.groupValue, picklistBinId: orderItem.picklistBinId, diff --git a/src/views/Completed.vue b/src/views/Completed.vue index c1e40d8b..1309c805 100644 --- a/src/views/Completed.vue +++ b/src/views/Completed.vue @@ -55,9 +55,9 @@
- + - {{ order.orderId }} + {{ order.orderName }}
diff --git a/src/views/InProgress.vue b/src/views/InProgress.vue index 0ae9ee58..a38fdb8e 100644 --- a/src/views/InProgress.vue +++ b/src/views/InProgress.vue @@ -44,9 +44,9 @@
- + - {{ order.orderId }} + {{ order.orderName }}
diff --git a/src/views/OpenOrders.vue b/src/views/OpenOrders.vue index a87d2c49..91f066c7 100644 --- a/src/views/OpenOrders.vue +++ b/src/views/OpenOrders.vue @@ -42,9 +42,9 @@
- + - {{ orders.doclist.docs[0].orderId }} + {{ orders.doclist.docs[0].orderName }}