fix(dashboard): few admin bug fixes (#11655)
**What** - OE id bug - prevent canceling shipped/delivered fulfillment --- CLOSES CMRC-935 CLOSES CMRC-938
This commit is contained in:
@@ -131,7 +131,7 @@ export const useCancelOrderEdit = (
|
|||||||
})
|
})
|
||||||
|
|
||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
queryKey: ordersQueryKeys.lineItems(id),
|
queryKey: ordersQueryKeys.lineItems(orderId),
|
||||||
})
|
})
|
||||||
options?.onSuccess?.(data, variables, context)
|
options?.onSuccess?.(data, variables, context)
|
||||||
},
|
},
|
||||||
|
|||||||
+4
-1
@@ -347,7 +347,10 @@ const Fulfillment = ({
|
|||||||
label: t("actions.cancel"),
|
label: t("actions.cancel"),
|
||||||
icon: <XCircle />,
|
icon: <XCircle />,
|
||||||
onClick: handleCancel,
|
onClick: handleCancel,
|
||||||
disabled: !!fulfillment.canceled_at,
|
disabled:
|
||||||
|
!!fulfillment.canceled_at ||
|
||||||
|
!!fulfillment.shipped_at ||
|
||||||
|
!!fulfillment.delivered_at,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user