0013057: GLPI 11506 - Relatório de Demanda

bug#13057
dev:gleimar
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@88208 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdir 2018-12-20 18:13:36 +00:00
parent 557926be2e
commit 7ef534ce22
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ public class RelatorioDemandasDetalhado extends RelatorioDemandas {
if (parametros.get("TIPO_SERVICO") != null) {
sql.append(" AND c.TIPOSERVICIO_ID = :TIPO_SERVICO ");
}
sql.append(" and (c.corrida_id) not in (select (ve.SERVICO) from vendidos ve) ");
sql.append(" and (c.corrida_id, c.feccorrida) not in (select SERVICO, data from vendidos ) ");
sql.append(" ) ");
sql.append(" select * from ( ");

View File

@ -172,7 +172,7 @@ public class RelatorioDemandasDetalhadoNovoLayout extends RelatorioDemandas {
sql.append((parametros.get("PARADA_ID") != null) ? " and ori.parada_id =:PARADA_ID " : "");
sql.append((parametros.get("TIPO_SERVICO") != null) ? " and ts.tiposervicio_id = :TIPO_SERVICO " : "");
sql.append(" and co.CORRIDA_ID not in (select servico from vendidos ) ");
sql.append(" and (co.CORRIDA_ID, co.feccorrida) not in (select servico, data_corrida from vendidos ) ");
sql.append(" and co.activo = 1 and ct.activo = 1 and r.activo = 1 and e.activo = 1 and ori.activo = 1 and des.activo = 1 and ");
sql.append(" cs.activo = 1 and ro.activo = 1 and da.activo = 1 and ts.activo = 1 ");