Skip to content

Commit

Permalink
Merge pull request #108 from ymaheshwari1/#2h194jz
Browse files Browse the repository at this point in the history
Improved: the query to not include orders whose fulfillment status is either Cancelled or Rejected(#2h194jz)
  • Loading branch information
adityasharma7 authored Jun 28, 2022
2 parents aa57ff9 + 65368a6 commit 8e96c91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const actions: ActionTree<OrderState , RootState> ={
...payload,
shipmentMethodTypeId: !store.state.user.preference.showShippingOrders ? 'STOREPICKUP' : '',
'-shipmentStatusId': '*',
'-fulfillmentStatus': 'Cancelled',
'-fulfillmentStatus': '(Cancelled OR Rejected)',
orderStatusId: 'ORDER_APPROVED',
orderTypeId: 'SALES_ORDER'
})
Expand Down Expand Up @@ -107,7 +107,7 @@ const actions: ActionTree<OrderState , RootState> ={
...payload,
shipmentMethodTypeId: !store.state.user.preference.showShippingOrders ? 'STOREPICKUP' : '',
'-shipmentStatusId': '*',
'-fulfillmentStatus': 'Cancelled',
'-fulfillmentStatus': '(Cancelled OR Rejected)',
orderStatusId: 'ORDER_APPROVED',
orderTypeId: 'SALES_ORDER'
})
Expand Down Expand Up @@ -179,7 +179,7 @@ const actions: ActionTree<OrderState , RootState> ={
shipmentMethodTypeId: !store.state.user.preference.showShippingOrders ? 'STOREPICKUP' : '',
shipmentStatusId: "SHIPMENT_PACKED",
orderTypeId: 'SALES_ORDER',
'-fulfillmentStatus': 'Cancelled',
'-fulfillmentStatus': '(Cancelled OR Rejected)',
})

try {
Expand Down

0 comments on commit 8e96c91

Please sign in to comment.