invoice pay approve , ...

This commit is contained in:
hamid zarghami
2025-02-22 12:42:12 +03:30
parent 983deef7c8
commit 1532fbc0ad
7 changed files with 260 additions and 6 deletions
@@ -9,3 +9,13 @@ export const getInvoiceDetail = async (id: string) => {
const { data } = await axios.get(`/invoices/${id}`);
return data;
};
export const approveInvoice = async (id: string) => {
const { data } = await axios.patch(`/invoices/${id}/approve`);
return data;
};
export const payInvoice = async (id: string) => {
const { data } = await axios.post(`/invoices/${id}/pay`);
return data;
};