'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
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>GeneradorBoletosCNAB</artifactId>
|
<artifactId>GeneradorBoletosCNAB</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
<name>GeneradorBoletosCNAB</name>
|
<name>GeneradorBoletosCNAB</name>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
|
|
|
@ -35,7 +35,6 @@ public class ArquivoRemessaItau extends ArquivoRemessaItem {
|
||||||
@Override
|
@Override
|
||||||
public RodapeRemessa getRodapeRemessa() {
|
public RodapeRemessa getRodapeRemessa() {
|
||||||
this.rodapeRemessa = this.rodapeRemessa == null ? new RodapeRemessaPadrao() : this.rodapeRemessa;
|
this.rodapeRemessa = this.rodapeRemessa == null ? new RodapeRemessaPadrao() : this.rodapeRemessa;
|
||||||
rodapeRemessa.setNumeroSequencialRegistro(titulos.size()+2);
|
|
||||||
return rodapeRemessa;
|
return rodapeRemessa;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -21,6 +21,8 @@ import com.rjconsultores.ventaboletos.utils.FormataUtil;
|
||||||
|
|
||||||
public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface {
|
public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface {
|
||||||
|
|
||||||
|
private static final String SOMENTE_CLASSE_DE_RETORNO = "Somente classe de Retorno.";
|
||||||
|
|
||||||
public ItauFlatFile() {
|
public ItauFlatFile() {
|
||||||
super(BancoLayout.ITAU_400_Envio);
|
super(BancoLayout.ITAU_400_Envio);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +51,6 @@ public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface {
|
||||||
header.setValue("NumeroSequencialRegistro", FormataUtil.formatarValorPorTamanho(cabecalhoRemessa.getNumeroSequencialRegistro().toString(), 6));
|
header.setValue("NumeroSequencialRegistro", FormataUtil.formatarValorPorTamanho(cabecalhoRemessa.getNumeroSequencialRegistro().toString(), 6));
|
||||||
|
|
||||||
getFlatFile().addRecord(header);
|
getFlatFile().addRecord(header);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -152,17 +153,17 @@ public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected CabecalhoRetorno readHeader(Record header) {
|
protected CabecalhoRetorno readHeader(Record header) {
|
||||||
throw new UnsupportedOperationException("Somente classe de Retorno.");
|
throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<DetalheRetorno> readTransacaoTitulos(Collection<Record> registrosDeTransacoes) {
|
protected List<DetalheRetorno> readTransacaoTitulos(Collection<Record> registrosDeTransacoes) {
|
||||||
throw new UnsupportedOperationException("Somente classe de Retorno.");
|
throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected RodapeRetorno readTrailler(Record trailler) {
|
protected RodapeRetorno readTrailler(Record trailler) {
|
||||||
throw new UnsupportedOperationException("Somente classe de Retorno.");
|
throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue