diff --git a/pom.xml b/pom.xml index 9a44e194f..c9b0a909e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,9 +5,9 @@ br.com.rjconsultores GeneradorBoletosCNAB - 1.4.0 + 1.4.1 GeneradorBoletosCNAB - + rj-releases diff --git a/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java b/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java index fb34d9c1c..2412ec7bc 100644 --- a/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java +++ b/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java @@ -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; } -} +} \ No newline at end of file diff --git a/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java b/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java index 5ac1e116c..072c6ab08 100644 --- a/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java +++ b/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java @@ -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); } @@ -48,8 +50,7 @@ public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface { header.setValue("Brancos2", FormataUtil.formatarValorPorTamanho(" ", 294)); header.setValue("NumeroSequencialRegistro", FormataUtil.formatarValorPorTamanho(cabecalhoRemessa.getNumeroSequencialRegistro().toString(), 6)); - getFlatFile().addRecord(header); - + getFlatFile().addRecord(header); } @Override @@ -152,17 +153,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 readTransacaoTitulos(Collection 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