diff --git a/app/(dashboard)/lancamentos/actions.ts b/app/(dashboard)/lancamentos/actions.ts index 6397132..6e8f7b7 100644 --- a/app/(dashboard)/lancamentos/actions.ts +++ b/app/(dashboard)/lancamentos/actions.ts @@ -454,10 +454,6 @@ const buildLancamentoRecords = ({ installment += 1 ) { const installmentPeriod = addMonthsToPeriod(period, installment); - const installmentPurchaseDate = addMonthsToDate( - purchaseDate, - installment - ); const installmentDueDate = dueDate ? addMonthsToDate(dueDate, installment) : null; @@ -469,7 +465,7 @@ const buildLancamentoRecords = ({ ...basePayload, amount: centsToDecimalString(amountCents * amountSign), pagadorId: share.pagadorId, - purchaseDate: installmentPurchaseDate, + purchaseDate: purchaseDate, period: installmentPeriod, isSettled: settled, installmentCount: installmentTotal,