From 4cb968864d177cfb9e4a7768f0a84c52e43f45e4 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Fri, 20 Oct 2023 20:15:06 +0530 Subject: [PATCH 1/2] Implemented: Added support to open picklist pdf from order detail page. --- src/store/modules/order/actions.ts | 3 ++- src/views/OrderDetail.vue | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 129168c7..7e268cc7 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -274,6 +274,7 @@ const actions: ActionTree = { orderName: orderItem.orderName, groupValue: order.groupValue, picklistBinId: orderItem.picklistBinId, + picklistId: orderItem.picklistId, items: order.doclist.docs, shipmentMethodTypeId: orderItem.shipmentMethodTypeId, shipmentMethodTypeDesc: orderItem.shipmentMethodTypeDesc, @@ -634,7 +635,7 @@ const actions: ActionTree = { shipGroups = payload.shipGroups.map((shipGroup: any) => { const reservedShipGroupForOrder = shipGroups.find((group: any) => shipGroup.shipGroupSeqId === group.doclist.docs[0].shipGroupSeqId) - const reservedShipGroup = reservedShipGroupForOrder.groupValue ? reservedShipGroupForOrder.doclist.docs[0] : '' + const reservedShipGroup = reservedShipGroupForOrder?.groupValue ? reservedShipGroupForOrder.doclist.docs[0] : '' return reservedShipGroup ? { ...shipGroup, diff --git a/src/views/OrderDetail.vue b/src/views/OrderDetail.vue index 897d3dda..8b128500 100644 --- a/src/views/OrderDetail.vue +++ b/src/views/OrderDetail.vue @@ -17,9 +17,9 @@ {{ order.orderId }} - + - {{ translate('Linked picklist') }}: {{ order.picklistBinId }} + {{ translate('Linked picklist') }}: {{ order.picklistId }}