fix: corrige antecipacao e fechamento de compras no cartao

This commit is contained in:
Felipe Coutinho
2026-03-06 13:58:28 +00:00
parent 137c7b305d
commit 2f781a8dca
7 changed files with 48 additions and 41 deletions

View File

@@ -38,6 +38,7 @@ export type CreateAnticipationInput = {
seriesId: string;
installmentIds: string[];
anticipationPeriod: string;
discount?: number;
pagadorId?: string;
categoriaId?: string;
note?: string;

View File

@@ -71,9 +71,6 @@ export function formatPurchaseDate(date: Date): string {
* Formata o texto da parcela atual
* Exemplo: "1 de 6"
*/
export function formatCurrentInstallment(
current: number,
total: number,
): string {
export function formatCurrentInstallment(current: number, total: number): string {
return `${current} de ${total}`;
}