From 43ec668dceb2756a08d23d770d470b1e6c7db2a7 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 14 Nov 2024 11:46:00 +0700 Subject: [PATCH] fix: wrong get invoice list --- src/pages/05_quotation/QuotationForm.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index c1b15824..d30cf4c7 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -1042,7 +1042,9 @@ async function getInvoiceCode(invoiceId: string) { } async function getInvoiceCodeFullPay() { - const ret = await invoiceStore.getInvoiceList(); + const ret = await invoiceStore.getInvoiceList({ + quotationId: quotationFormData.value.id, + }); if (ret) code.value = ret.result.at(0)?.code || ''; }