Merge branch 'feature/associated-payment-transactions' into develop

This commit is contained in:
elforjani13
2021-12-14 13:06:05 +02:00
27 changed files with 775 additions and 63 deletions

View File

@@ -186,3 +186,18 @@ export function useRefreshBills() {
},
};
}
export function useBillPaymentTransactions(id, props) {
return useRequestQuery(
[t.BILLS_PAYMENT_TRANSACTIONS, id],
{
method: 'get',
url: `purchases/bills/${id}/payment-transactions`,
},
{
select: (res) => res.data.data,
defaultData: [],
...props,
},
);
}