updated payhistory after add payment
This commit is contained in:
parent
7176a86913
commit
e2035e1fd8
@ -99,6 +99,7 @@ export const useAddPayment = (onSuccessCallBack) => {
|
|||||||
mutationFn: (payload) => CollectionRepository.makeReceivePayment(payload),
|
mutationFn: (payload) => CollectionRepository.makeReceivePayment(payload),
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
client.invalidateQueries({ queryKey: ["collections"] });
|
client.invalidateQueries({ queryKey: ["collections"] });
|
||||||
|
client.invalidateQueries({ queryKey: ["collection"] });
|
||||||
showToast("Payment Received marked Successfully", "success");
|
showToast("Payment Received marked Successfully", "success");
|
||||||
if (onSuccessCallBack) onSuccessCallBack();
|
if (onSuccessCallBack) onSuccessCallBack();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user