Merge pull request 'AL-4286__' (!182) from AL-4286__ into master
Reviewed-on: adm/ModelWeb#182master
commit
7c54cff254
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.53.0</version>
|
<version>1.54.0</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
|
|
@ -1100,7 +1100,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
||||||
sql.append(" inner join marca m on m.marca_id = bori.marca_id and m.activo = 1 ");
|
sql.append(" inner join marca m on m.marca_id = bori.marca_id and m.activo = 1 ");
|
||||||
sql.append(" inner join empresa e on e.empresa_id = m.empresa_id ");
|
sql.append(" inner join empresa e on e.empresa_id = m.empresa_id ");
|
||||||
sql.append(" inner join bpe bpe on bpe.boleto_id = bori.boleto_id ");
|
sql.append(" inner join bpe bpe on bpe.boleto_id = bori.boleto_id ");
|
||||||
sql.append(" and (case when bori.motivocancelacion_id = 17 and bori.boletooriginal_id is null then 0 else 1 end) ");
|
sql.append(" and bpe.activo(case when bori.motivocancelacion_id = 17 and bori.boletooriginal_id is null then 0 else 1 end) ");
|
||||||
sql.append(" inner join estado est_bpe on bpe.uf = est_bpe.codibge ");
|
sql.append(" inner join estado est_bpe on bpe.uf = est_bpe.codibge ");
|
||||||
sql.append(" left join boleto b on b.boleto_id = coalesce(bori.boletoanterior_id, bori.boletooriginal_id) ");
|
sql.append(" left join boleto b on b.boleto_id = coalesce(bori.boletoanterior_id, bori.boletooriginal_id) ");
|
||||||
sql.append(" left join bpe bpeori on b.boleto_id = bpeori.boleto_id and bpeori.activo = 1 ");
|
sql.append(" left join bpe bpeori on b.boleto_id = bpeori.boleto_id and bpeori.activo = 1 ");
|
||||||
|
|
Loading…
Reference in New Issue