From 8703f9c8a8f19d0d9524d979fc4cb03ef3bd0103 Mon Sep 17 00:00:00 2001 From: NANDO9322 Date: Thu, 12 Feb 2026 11:06:41 -0300 Subject: [PATCH] fix:(extrato-profissional) ajusta nome do evento --- backend/internal/agenda/service.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/backend/internal/agenda/service.go b/backend/internal/agenda/service.go index e7b6a61..d87952d 100644 --- a/backend/internal/agenda/service.go +++ b/backend/internal/agenda/service.go @@ -961,14 +961,19 @@ func (s *Service) GetProfessionalFinancialStatement(ctx context.Context, userID } nomeEvento := "" + prefix := "Evento" + if t.TipoEvento.Valid && t.TipoEvento.String != "" { + prefix = t.TipoEvento.String + } + if t.FotNumero.Valid { if t.CursoNome.Valid { - nomeEvento = fmt.Sprintf("Formatura %s (FOT %s)", t.CursoNome.String, t.FotNumero.String) + nomeEvento = fmt.Sprintf("%s - %s (FOT %s)", prefix, t.CursoNome.String, t.FotNumero.String) } else { - nomeEvento = fmt.Sprintf("Formatura FOT %s", t.FotNumero.String) + nomeEvento = fmt.Sprintf("%s - FOT %s", prefix, t.FotNumero.String) } } else { - nomeEvento = t.TipoEvento.String + nomeEvento = prefix } dto := FinancialTransactionDTO{