From 07be9ec580d4a85f705be52a9011b40115bda577 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Thu, 5 Sep 2024 16:27:00 +0530 Subject: [PATCH] Improved: sending picked quantity as payload in create picklist (#415) --- src/store/modules/order/actions.ts | 1 + src/views/Orders.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 6424fba3d..31da8e2b6 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -549,6 +549,7 @@ const actions: ActionTree ={ items.map((item: any, index: number) => { formData.append("itemStatusId_o_"+index, "PICKITEM_PENDING") formData.append("pickerIds_o_"+index, payload.selectedPicker) + formData.append("picked_o_"+index, item.quantity) Object.keys(item).map((property) => { if(property !== "facilityId") formData.append(property+'_o_'+index, item[property]) }) diff --git a/src/views/Orders.vue b/src/views/Orders.vue index 14f122ee7..174e1c57d 100644 --- a/src/views/Orders.vue +++ b/src/views/Orders.vue @@ -520,6 +520,7 @@ export default defineComponent({ items.map((item: any, index: number) => { formData.append("itemStatusId_o_"+index, "PICKITEM_PENDING") formData.append("pickerIds_o_"+index, selectedPicker) + formData.append("picked_o_"+index, item.quantity) Object.keys(item).map((property) => { if(property !== "facilityId") formData.append(property+'_o_'+index, item[property]) })