From 153542ae162f7054631b4ff0eaa038981d393185 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 18 Oct 2024 13:57:03 +0700 Subject: [PATCH] fix: split date --- src/pages/05_quotation/QuotationFormInfo.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index 6f60d944..5abecd19 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -203,6 +203,8 @@ watch( ) return; calculateInstallments({ newCount: newCount || 0, oldCount: oldCount || 0 }); + if (paySplit.value.length > 0 && !paySplit.value[0].date) + paySplit.value[0].date = new Date(); if (newCount !== oldCount) { paySplit.value[0].date && installmentsDate(paySplit.value[0].date); } @@ -432,6 +434,7 @@ watch(