-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
A FEBRABAN criou um novo fator de vencimento para boletos com vencimento a partir de 22/02/2025.
Atualizei a última versão, mas não atendia a esse novo critério.
Resolvi da seguinte forma:
/* Novo Fator de Vencimento */
DateTime dataReinicio = new DateTime(2025, 2, 22);
if (boleto.DataVencimento >= dataReinicio)
{
boleto.CodigoBarra.FatorVencimento = (1000 + (boleto.DataVencimento - dataReinicio).Days);
}
//////////////////////////////
boleto.ValidarDados();
Enfim, pra quem estiver passando por problemas, essa solução resolve.
Metadata
Metadata
Assignees
Labels
No labels