Skip to content

Commit 0784a3e

Browse files
committed
Removed: commented code(hotwax#472)
1 parent 265b088 commit 0784a3e

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/store/modules/order/actions.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const actions: ActionTree<OrderState , RootState> ={
278278
entityName: "OrderItemShipGroupAndFacility"
279279
}]
280280

281-
const [orderHeader, orderContactMech, orderIdentifications, orderAttributes, orderStatusInfo, orderPaymentPreference, orderShipGroups] = await Promise.allSettled(apiPayload.map((payload: any) => OrderService.performFind(payload)))
281+
const [orderHeader, orderContactMech, orderIdentifications, orderAttributes, orderStatusInfo, orderPaymentPreference] = await Promise.allSettled(apiPayload.map((payload: any) => OrderService.performFind(payload)))
282282

283283
if(orderHeader.status === "fulfilled" && !hasError(orderHeader.value) && orderHeader.value.data.count > 0) {
284284
order = {
@@ -392,28 +392,14 @@ const actions: ActionTree<OrderState , RootState> ={
392392
order["picklistDate"] = picklistInfo.data.docs[0].picklistDate
393393
}
394394
}
395-
396-
const shipGroupSeqIds: Array<string> = [];
397-
const shipmentMethodIds: Array<string> = []
398-
399-
const carrierPartyIds = [] as any;
400-
401-
// TODO: fetch carrier info
402-
// const carrierInfo = await dispatch("fetchCarriersTrackingInfo", Array.from(new Set(carrierPartyIds)));
403-
// Object.keys(order["shipGroups"]).map((shipGroupId: any) => {
404-
// const shipGroup = order["shipGroups"][shipGroupId]
405-
// shipGroup.map((item: any) => item["carrierPartyName"] = carrierInfo[item.carrierPartyId]?.carrierName || "")
406-
// })
407-
408-
// this.dispatch("util/fetchShipmentMethodTypeDesc", shipmentMethodIds)
409395
} catch(err) {
410396
logger.error(err)
411397
}
412398

413399
await dispatch('updateCurrent', { order })
414400
},
415401

416-
async getOrderDetail({ dispatch, state }, { payload, orderType }) {
402+
async getOrderDetail({ dispatch }, { payload, orderType }) {
417403
if(orderType === 'open') {
418404
payload['orderStatusId'] = "ORDER_APPROVED"
419405
payload['-shipmentStatusId'] = "(SHIPMENT_PACKED OR SHIPMENT_SHIPPED)"

0 commit comments

Comments
 (0)