feat: add attachment manager for payment store

This commit is contained in:
Methapon Metanipat 2024-10-30 11:01:12 +07:00
parent b6242c199f
commit 22307ed2fb

View file

@ -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'),
};
});