fixes bug #AL-3708

master
valdevir 2024-01-10 15:36:08 -03:00
parent 33a167d6e4
commit df96cbf154
2 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ModelWeb</artifactId>
<version>1.29.0</version>
<version>1.30.0</version>
<distributionManagement>
<repository>

View File

@ -985,6 +985,7 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
detalhe.setDetalheMulta(multa);
}
}catch(Exception e){
log.error("Erro ao gerar detalhe muulta para remessaId=" + tupla[1].toString() , e);
}
try{
@ -1045,8 +1046,9 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
arquivoRemessaItem.addTitulo(detalhe);
}
if(arquivoRemessaItem!=null && arquivoRemessaItem.getRodapeRemessa()!=null) {
arquivoRemessaItem.getRodapeRemessa().setNumeroSequencialRegistro(++contador);
}
nomeArquivo = nomeArquivo + new DecimalFormat("##").format(variavel) + ".REM";
arquivoRemessa.setNomeArquivo(nomeArquivo);
@ -1850,7 +1852,7 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
}
}
if(count < 50){
if(count <= 50){
ids = ids.substring(1);
stmt.addBatch("UPDATE FECHAMENTO_BOLETO SET REMESSA_ID = " + seqRemessa + " WHERE FECHAMENTOBOLETO_ID IN ( " + ids + " )");
count = 0;