Skip to content

Commit

Permalink
Removed: console statements(hotwax#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jan 13, 2025
1 parent 88875bf commit bea0ed8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,28 +759,24 @@ const actions: ActionTree<OrderState , RootState> ={
resp = await OrderService.updateShipment(params)
if (resp.status === 200 && !hasError(resp)) {
// Remove order from the list if action is successful
console.log('state.packed.list', state.packed.list)
const orderIndex = state.packed.list.findIndex((packedOrder: any) => {
return packedOrder.orderId === order.orderId && order.parts.some((part: any) => {
return packedOrder.parts.some((packedOrderPart: any) => {
return part.orderPartSeqId === packedOrderPart.orderPartSeqId;
})
});
});
console.log('orderIndex', orderIndex)
if (orderIndex > -1) {
state.packed.list.splice(orderIndex, 1);
commit(types.ORDER_PACKED_UPDATED, { orders: state.packed.list, total: state.packed.total -1 })
}

if(order.part.shipmentMethodEnum.shipmentMethodEnumId === 'STOREPICKUP'){
order = { ...order, handovered: true }
}else {
} else {
order = { ...order, shipped: true }
}

console.log('order', order)

dispatch('updateCurrent', { order })
} else {
showToast(translate("Something went wrong"))
Expand Down
3 changes: 0 additions & 3 deletions src/views/OrderDetailUpdated.vue
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,6 @@ export default defineComponent({
let resp;
const items = order.part.items;
console.log('items', items);
const formData = new FormData();
formData.append("facilityId", items[0].facilityId);
items.map((item: any, index: number) => {
Expand Down Expand Up @@ -1053,8 +1052,6 @@ export default defineComponent({
const orderTimelineComponents = [...communicationEvents, ...orderChangeHistory]
console.log('this.order.orderDate', this.order)
// Add order creation date to timeline
if(this.order.orderDate) {
timeline.push({
Expand Down

0 comments on commit bea0ed8

Please sign in to comment.