fix:(extrato-profissional) ajusta nome do evento
This commit is contained in:
parent
21a5b81132
commit
8703f9c8a8
1 changed files with 8 additions and 3 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue