fix(core-flows, dashboard): reservation recreation on fulfilment cancel + allocation button display (#12447)
**What** - fix recreation of reservations on fulfilment cancel - fix allocate items button display --- CLOSES CMRC-1018
This commit is contained in:
@@ -220,6 +220,14 @@ export const useCancelOrderFulfillment = (
|
||||
queryKey: ordersQueryKeys.preview(orderId),
|
||||
})
|
||||
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: reservationItemsQueryKeys.lists(),
|
||||
})
|
||||
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: inventoryItemsQueryKeys.details(),
|
||||
})
|
||||
|
||||
options?.onSuccess?.(data, variables, context)
|
||||
},
|
||||
...options,
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ export const OrderSummarySection = ({ order }: OrderSummarySectionProps) => {
|
||||
}
|
||||
|
||||
return false
|
||||
}, [reservations])
|
||||
}, [order.items, reservations])
|
||||
|
||||
const unpaidPaymentCollection = order.payment_collections.find(
|
||||
(pc) => pc.status === "not_paid"
|
||||
|
||||
Reference in New Issue
Block a user