mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: payment made detail.
This commit is contained in:
@@ -166,4 +166,20 @@ export function useRefreshPaymentMades() {
|
||||
queryClient.invalidateQueries(t.PAYMENT_MADES);
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve specific payment made.
|
||||
* @param {number} id - Payment made.
|
||||
*/
|
||||
export function usePaymentMade(id, props) {
|
||||
return useRequestQuery(
|
||||
[t.PAYMENT_MADE, id],
|
||||
{ method: 'get', url: `purchases/bill_payments/${id}` },
|
||||
{
|
||||
select: (res) => res.data.bill_payment,
|
||||
defaultData: {},
|
||||
...props,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user