Merge pull request 'fixes bug#AL-4862' (!267) from AL-4862 into master

Reviewed-on: adm/ModelWeb#267
Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>
master
wallace 2024-09-05 14:30:25 +00:00
commit 0dfb3f0304
2 changed files with 2 additions and 2 deletions

View File

@ -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.103.2</version> <version>1.103.3</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -716,7 +716,7 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
sql.append(" and numfoliopreimpreso between :folioInicial and :folioFinal "); sql.append(" and numfoliopreimpreso between :folioInicial and :folioFinal ");
sql.append(" union all "); sql.append(" union all ");
sql.append(" SELECT coalesce(min( numfoliopreimpreso), '0') as folio "); sql.append(" SELECT coalesce(min( numfoliopreimpreso), '0') as folio ");
sql.append(" FROM caja "); sql.append(" FROM caja_diversos ");
sql.append(" where activo = 1 "); sql.append(" where activo = 1 ");
sql.append(" and numseriepreimpresa = :serie "); sql.append(" and numseriepreimpresa = :serie ");
sql.append(" and numfoliopreimpreso between :folioInicial and :folioFinal "); sql.append(" and numfoliopreimpreso between :folioInicial and :folioFinal ");