Skip to content

Commit dee649a

Browse files
authored
Merge pull request hotwax#934 from ymaheshwari1/hotwax#933
Fixed: issue to display the order productStore name on the lookup details page(hotwax#933)
2 parents 1892172 + 7083ee6 commit dee649a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/views/OrderLookupDetail.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
<ion-list>
113113
<ion-item>
114114
<ion-label class="ion-text-wrap">{{ translate("Brand") }}</ion-label>
115-
<ion-label class="ion-text-wrap" slot="end">{{ currentEComStore.storeName || "-" }}</ion-label>
115+
<ion-label class="ion-text-wrap" slot="end">{{ getProductStoreName(order.productStoreId) || "-" }}</ion-label>
116116
</ion-item>
117117
<ion-item lines="none">
118118
<ion-label class="ion-text-wrap">{{ translate("Channel") }}</ion-label>
@@ -335,12 +335,14 @@ export default defineComponent({
335335
getShipmentMethodDesc: "util/getShipmentMethodDesc",
336336
getPaymentMethodDesc: 'util/getPaymentMethodDesc',
337337
userProfile: 'user/getUserProfile',
338-
instanceUrl: "user/getInstanceUrl"
338+
instanceUrl: "user/getInstanceUrl",
339+
productStores: "util/getProductStores",
339340
})
340341
},
341342
async ionViewWillEnter() {
342343
this.isFetchingOrderInfo = true
343344
await this.store.dispatch("orderLookup/getOrderDetails", this.orderId)
345+
await this.store.dispatch("util/fetchProductStores")
344346
await this.fetchOrderInvoicingFacility()
345347
const instance = this.instanceUrl.split("-")[0]
346348
this.additionalDetailItemExt = await useDynamicImport({ scope: "fulfillment_extensions", module: `${instance}_OrderLookupAdditionalDetailItem`})
@@ -408,20 +410,21 @@ export default defineComponent({
408410
} catch(error: any) {
409411
logger.error(error);
410412
}
413+
},
414+
getProductStoreName(productStoreId: string) {
415+
return this.productStores.find((store: any) => store.productStoreId === productStoreId)?.storeName || productStoreId
411416
}
412417
},
413418
setup() {
414419
const store = useStore();
415420
const userStore = useUserStore()
416-
let currentEComStore: any = computed(() => userStore.getCurrentEComStore)
417421
418422
return {
419423
callOutline,
420424
cashOutline,
421425
checkmarkDoneOutline,
422426
closeCircleOutline,
423427
cubeOutline,
424-
currentEComStore,
425428
downloadOutline,
426429
ellipsisVerticalOutline,
427430
formatCurrency,

0 commit comments

Comments
 (0)