updated payhistory after add payment

This commit is contained in:
pramod.mahajan 2025-10-14 14:28:49 +05:30
parent 7176a86913
commit e2035e1fd8

View File

@ -99,6 +99,7 @@ export const useAddPayment = (onSuccessCallBack) => {
mutationFn: (payload) => CollectionRepository.makeReceivePayment(payload),
onSuccess: () => {
client.invalidateQueries({ queryKey: ["collections"] });
client.invalidateQueries({ queryKey: ["collection"] });
showToast("Payment Received marked Successfully", "success");
if (onSuccessCallBack) onSuccessCallBack();
},