diff --git a/src/stores/payment/index.ts b/src/stores/payment/index.ts index d6108c2f..8e9bf34c 100644 --- a/src/stores/payment/index.ts +++ b/src/stores/payment/index.ts @@ -3,6 +3,7 @@ import { defineStore } from 'pinia'; import { api } from 'src/boot/axios'; import { PaginationResult } from 'src/types'; import { Invoice, InvoicePayload, Payment, Receipt } from './types'; +import { manageAttachment } from '../utils'; export const usePayment = defineStore('payment-store', () => { const data = ref<{}[]>([]); @@ -60,6 +61,8 @@ export const usePayment = defineStore('payment-store', () => { getPaymentList, updatePayment, deletePayment, + + ...manageAttachment(api, 'payment'), }; });