From c6a299bc1babc9beaf7395774c84950638e64397 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 26 Nov 2024 13:29:58 +0700 Subject: [PATCH] fix: array positions do not match --- src/pages/05_quotation/form.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/form.ts b/src/pages/05_quotation/form.ts index db955a0d..ef81a395 100644 --- a/src/pages/05_quotation/form.ts +++ b/src/pages/05_quotation/form.ts @@ -134,8 +134,8 @@ export const useQuotationForm = defineStore('form-quotation', () => { })), dueDate: new Date(data.dueDate), payBillDate: data.payBillDate ? new Date(data.payBillDate) : undefined, - paySplit: data.paySplit.map((p, index) => ({ - no: index + 1, + paySplit: data.paySplit.map((p) => ({ + no: p.no, invoiceId: p.invoiceId, name: p.name, amount: p.amount,