fix: wrong get invoice list

This commit is contained in:
Methapon Metanipat 2024-11-14 11:46:00 +07:00
parent f8717b3d01
commit 43ec668dce

View file

@ -1042,7 +1042,9 @@ async function getInvoiceCode(invoiceId: string) {
} }
async function getInvoiceCodeFullPay() { 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 || ''; if (ret) code.value = ret.result.at(0)?.code || '';
} }