diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index a94990a9..51518d04 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -165,10 +165,13 @@ function installmentsDate(date: Date | string) { return pay; } - // Create a new Date object to avoid mutating the original one let updatedDate = new Date(firstPayDateObj); updatedDate.setMonth(updatedDate.getMonth() + index); + if (updatedDate.getDate() !== firstPayDateObj.getDate()) { + updatedDate.setDate(0); + } + return { ...pay, date: updatedDate.toISOString(),