Skip to content

Commit

Permalink
Removed: conditional check for parking and always move items to RELEA…
Browse files Browse the repository at this point in the history
…SED_ORD_PARKING(#290)
  • Loading branch information
ymaheshwari1 committed Jul 31, 2024
1 parent 38a37e6 commit da3e9e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/order-popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineComponent({
orderId: item.orderId,
orderItemSeqId: item.orderItemSeqId,
changeReasonEnumId: "RELEASED",
toFacilityId: this.currentEComStore.productStoreId === "SM_STORE" || this.currentEComStore.productStoreId === "DV_STORE" || this.currentEComStore.productStoreId === "BJ_STORE" ? "RELEASED_ORD_PARKING" : "_NA_" // TODO Make it configurable
toFacilityId: "RELEASED_ORD_PARKING" // TODO Make it configurable
})
},
async cancelItem (item: any) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export default defineComponent({
},
async releaseItems() {
emitter.emit("presentLoader")
const selectedItems = this.getSelectedItemsToRelease(this.currentEComStore.productStoreId === "SM_STORE" || this.currentEComStore.productStoreId === "DV_STORE" || this.currentEComStore.productStoreId === "BJ_STORE" ? "RELEASED_ORD_PARKING" : "_NA_", "RELEASED"); // TODO Make it configurable
const selectedItems = this.getSelectedItemsToRelease("RELEASED_ORD_PARKING", "RELEASED"); // TODO Make it configurable
const json = JSON.stringify(selectedItems);
const blob = new Blob([json], { type: 'application/json'});
const formData = new FormData();
Expand Down
2 changes: 1 addition & 1 deletion src/views/product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export default defineComponent({
orderId: item.orderId,
orderItemSeqId: item.orderItemSeqId,
changeReasonEnumId: "RELEASED",
toFacilityId: this.currentEComStore.productStoreId === "SM_STORE" || this.currentEComStore.productStoreId === "DV_STORE" || this.currentEComStore.productStoreId === "BJ_STORE" ? "RELEASED_ORD_PARKING" : "_NA_" // TODO Make it configurable
toFacilityId: "RELEASED_ORD_PARKING" // TODO Make it configurable
}
})
selectedItems = [...selectedItems, ...items];
Expand Down

0 comments on commit da3e9e1

Please sign in to comment.