From 22307ed2fb0e8d5962aef951457f06c0593a7379 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 30 Oct 2024 11:01:12 +0700 Subject: [PATCH] feat: add attachment manager for payment store --- src/stores/payment/index.ts | 3 +++ 1 file changed, 3 insertions(+) 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'), }; });