diff --git a/pom.xml b/pom.xml index 9b6936c1b..12e7496d7 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 br.com.rjconsultores ModelWeb - 1.0.29 + 1.0.30 rj-releases diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/CategoriaDescuentoHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/CategoriaDescuentoHibernateDAO.java index b66deef44..aec4b623b 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/CategoriaDescuentoHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/CategoriaDescuentoHibernateDAO.java @@ -75,6 +75,11 @@ public class CategoriaDescuentoHibernateDAO query.setParameter("categoriaId", categoriaId ); List retorno = (List)query.list(); + + //Caso não encontre categoria desconto com indnaoaplica deve se aplicar caso exista + if(retorno ==null || retorno.isEmpty()) { + return true; + } return retorno !=null && !retorno.isEmpty() && Boolean.TRUE.equals(retorno.get(0)) ? Boolean.TRUE : Boolean.FALSE; }