fixes bug AL-2125
parent
3b7c9f4866
commit
5fe075d9be
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.0.29</version>
|
||||
<version>1.0.30</version>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>rj-releases</id>
|
||||
|
|
|
@ -76,6 +76,11 @@ public class CategoriaDescuentoHibernateDAO
|
|||
|
||||
List<Boolean> retorno = (List<Boolean>)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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue