From 12e33366442ea27ecebaaad93f39abe490e69221 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Thu, 25 Jul 2024 15:46:05 +0530 Subject: [PATCH] Improved: check to move items to release ord parking for multiple productStores(#290) --- src/views/order-popover.vue | 2 +- src/views/orders.vue | 2 +- src/views/product-details.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/order-popover.vue b/src/views/order-popover.vue index 04699a3b..a5893987 100644 --- a/src/views/order-popover.vue +++ b/src/views/order-popover.vue @@ -38,7 +38,7 @@ export default defineComponent({ orderId: item.orderId, orderItemSeqId: item.orderItemSeqId, changeReasonEnumId: "RELEASED", - toFacilityId: this.currentEComStore.productStoreId === "SM_STORE" ? "RELEASED_ORD_PARKING" : "_NA_" // TODO Make it configurable, currently this is for SM only + toFacilityId: this.currentEComStore.productStoreId === "SM_STORE" || this.currentEComStore.productStoreId === "BJUS_STORE" ? "RELEASED_ORD_PARKING" : "_NA_" // TODO Make it configurable, currently this is for SM only }) }, async cancelItem (item: any) { diff --git a/src/views/orders.vue b/src/views/orders.vue index 7f9cd238..be71be73 100644 --- a/src/views/orders.vue +++ b/src/views/orders.vue @@ -295,7 +295,7 @@ export default defineComponent({ }, async releaseItems() { emitter.emit("presentLoader") - const selectedItems = this.getSelectedItemsToRelease(this.currentEComStore.productStoreId === "SM_STORE" ? "RELEASED_ORD_PARKING" : "_NA_", "RELEASED"); // TODO Make it configurable, currently this is for SM only + const selectedItems = this.getSelectedItemsToRelease(this.currentEComStore.productStoreId === "SM_STORE" || this.currentEComStore.productStoreId === "BJUS_STORE" ? "RELEASED_ORD_PARKING" : "_NA_", "RELEASED"); // TODO Make it configurable, currently this is for SM only const json = JSON.stringify(selectedItems); const blob = new Blob([json], { type: 'application/json'}); const formData = new FormData(); diff --git a/src/views/product-details.vue b/src/views/product-details.vue index efde4160..43b4f519 100644 --- a/src/views/product-details.vue +++ b/src/views/product-details.vue @@ -438,7 +438,7 @@ export default defineComponent({ orderId: item.orderId, orderItemSeqId: item.orderItemSeqId, changeReasonEnumId: "RELEASED", - toFacilityId: this.currentEComStore.productStoreId === "SM_STORE" ? "RELEASED_ORD_PARKING" : "_NA_" // TODO Make it configurable, this is for SM only as of now + toFacilityId: this.currentEComStore.productStoreId === "SM_STORE" || this.currentEComStore.productStoreId === "BJUS_STORE" ? "RELEASED_ORD_PARKING" : "_NA_" // TODO Make it configurable, this is for SM only as of now } }) selectedItems = [...selectedItems, ...items];