'Correção no arquivo de remessa Itau fixes bug#AL-3574' (#9) from AL-3574 into master
Reviewed-on: utilidades/GeneradorBoletosCNAB#9 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master
commit
30b65b7754
4
pom.xml
4
pom.xml
|
@ -5,9 +5,9 @@
|
|||
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>GeneradorBoletosCNAB</artifactId>
|
||||
<version>1.4.0</version>
|
||||
<version>1.4.1</version>
|
||||
<name>GeneradorBoletosCNAB</name>
|
||||
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>rj-releases</id>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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<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
|
||||
|
|
Loading…
Reference in New Issue