From 1f4edc73633f1f6b1745168a0630f8c5e5ebd9b6 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 29 Oct 2024 18:00:59 +0700 Subject: [PATCH] refactor: add installmentNo --- src/stores/quotations/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index f0e34867..e6146b1f 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -80,6 +80,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { productId: v.product.id, workId: v.work?.id, serviceId: v.service?.id, + installmentNo: v.installmentNo, workerIndex: v.workerIndex, })), }); @@ -148,7 +149,8 @@ export const useQuotationStore = defineStore('quotation-store', () => { export const useQuotationPayment = defineStore('quotation-payment', () => { async function getQuotationPayment(quotationId: string) { const res = await api.get>( - `/payment/${quotationId}`, + `/payment`, + { params: { quotationId } }, ); if (res.status < 400) { return res.data;