fixes bug #AL-3708
parent
33a167d6e4
commit
df96cbf154
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.29.0</version>
|
<version>1.30.0</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
|
|
@ -985,6 +985,7 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
|
||||||
detalhe.setDetalheMulta(multa);
|
detalhe.setDetalheMulta(multa);
|
||||||
}
|
}
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
log.error("Erro ao gerar detalhe muulta para remessaId=" + tupla[1].toString() , e);
|
||||||
}
|
}
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
@ -1045,8 +1046,9 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
|
||||||
|
|
||||||
arquivoRemessaItem.addTitulo(detalhe);
|
arquivoRemessaItem.addTitulo(detalhe);
|
||||||
}
|
}
|
||||||
|
if(arquivoRemessaItem!=null && arquivoRemessaItem.getRodapeRemessa()!=null) {
|
||||||
arquivoRemessaItem.getRodapeRemessa().setNumeroSequencialRegistro(++contador);
|
arquivoRemessaItem.getRodapeRemessa().setNumeroSequencialRegistro(++contador);
|
||||||
|
}
|
||||||
nomeArquivo = nomeArquivo + new DecimalFormat("##").format(variavel) + ".REM";
|
nomeArquivo = nomeArquivo + new DecimalFormat("##").format(variavel) + ".REM";
|
||||||
arquivoRemessa.setNomeArquivo(nomeArquivo);
|
arquivoRemessa.setNomeArquivo(nomeArquivo);
|
||||||
|
|
||||||
|
@ -1850,7 +1852,7 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count < 50){
|
if(count <= 50){
|
||||||
ids = ids.substring(1);
|
ids = ids.substring(1);
|
||||||
stmt.addBatch("UPDATE FECHAMENTO_BOLETO SET REMESSA_ID = " + seqRemessa + " WHERE FECHAMENTOBOLETO_ID IN ( " + ids + " )");
|
stmt.addBatch("UPDATE FECHAMENTO_BOLETO SET REMESSA_ID = " + seqRemessa + " WHERE FECHAMENTOBOLETO_ID IN ( " + ids + " )");
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
Loading…
Reference in New Issue