Correção no arquivo deremessa

master
fabio.fbarreto 2023-12-11 12:06:34 -03:00
parent ccde11931c
commit 14e9f8ee54
3 changed files with 6 additions and 5 deletions

View File

@ -5,7 +5,7 @@
<groupId>br.com.rjconsultores</groupId>
<artifactId>GeneradorBoletosCNAB</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
<name>GeneradorBoletosCNAB</name>
<distributionManagement>

View File

@ -35,7 +35,6 @@ public class ArquivoRemessaItau extends ArquivoRemessaItem {
@Override
public RodapeRemessa getRodapeRemessa() {
this.rodapeRemessa = this.rodapeRemessa == null ? new RodapeRemessaPadrao() : this.rodapeRemessa;
rodapeRemessa.setNumeroSequencialRegistro(titulos.size()+2);
return rodapeRemessa;
}
}

View File

@ -21,6 +21,8 @@ import com.rjconsultores.ventaboletos.utils.FormataUtil;
public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface {
private static final String SOMENTE_CLASSE_DE_RETORNO = "Somente classe de Retorno.";
public ItauFlatFile() {
super(BancoLayout.ITAU_400_Envio);
}
@ -152,17 +154,17 @@ public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface {
@Override
protected CabecalhoRetorno readHeader(Record header) {
throw new UnsupportedOperationException("Somente classe de Retorno.");
throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO);
}
@Override
protected List<DetalheRetorno> readTransacaoTitulos(Collection<Record> registrosDeTransacoes) {
throw new UnsupportedOperationException("Somente classe de Retorno.");
throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO);
}
@Override
protected RodapeRetorno readTrailler(Record trailler) {
throw new UnsupportedOperationException("Somente classe de Retorno.");
throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO);
}
@Override