feat: add attachment manager for payment store
This commit is contained in:
parent
b6242c199f
commit
22307ed2fb
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { defineStore } from 'pinia';
|
||||||
import { api } from 'src/boot/axios';
|
import { api } from 'src/boot/axios';
|
||||||
import { PaginationResult } from 'src/types';
|
import { PaginationResult } from 'src/types';
|
||||||
import { Invoice, InvoicePayload, Payment, Receipt } from './types';
|
import { Invoice, InvoicePayload, Payment, Receipt } from './types';
|
||||||
|
import { manageAttachment } from '../utils';
|
||||||
|
|
||||||
export const usePayment = defineStore('payment-store', () => {
|
export const usePayment = defineStore('payment-store', () => {
|
||||||
const data = ref<{}[]>([]);
|
const data = ref<{}[]>([]);
|
||||||
|
|
@ -60,6 +61,8 @@ export const usePayment = defineStore('payment-store', () => {
|
||||||
getPaymentList,
|
getPaymentList,
|
||||||
updatePayment,
|
updatePayment,
|
||||||
deletePayment,
|
deletePayment,
|
||||||
|
|
||||||
|
...manageAttachment(api, 'payment'),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue