diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jasper index fa2bf2b5a..c1de3ac96 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jrxml index 4255eb26d..6b6012541 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhas.jrxml @@ -143,7 +143,7 @@ AND CS.CLASESERVICIO_ID = RT.CLASESERVICIO_ID AND CR.FECCORRIDA = BL.FECCORRIDA AND CR.RUTA_ID = NVL($P{RUTA_ID}, CR.RUTA_ID) - AND RT.GRUPORUTA_ID = NVL($P{GRUPORUTA_ID}, RT.GRUPORUTA_ID) + AND DECODE($P{GRUPORUTA_ID}, NULL, 1, RT.GRUPORUTA_ID) = DECODE($P{GRUPORUTA_ID}, NULL, 1, $P{GRUPORUTA_ID}) AND CR.CORRIDA_ID = BL.CORRIDA_ID AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID} AND CR.ORIGEN_ID = PO.PARADA_ID diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jasper index 968e439bb..85f6b404b 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jrxml index 6924f75b8..4336efd86 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioResumoLinhasAnalitico.jrxml @@ -92,14 +92,13 @@ AND BL.ACTIVO = 1 AND CR.RUTA_ID = NVL($P{RUTA_ID}, CR.RUTA_ID) AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID} - AND RT.GRUPORUTA_ID = NVL($P{GRUPORUTA_ID}, RT.GRUPORUTA_ID) + AND DECODE($P{GRUPORUTA_ID}, NULL, 1, RT.GRUPORUTA_ID) = DECODE($P{GRUPORUTA_ID}, NULL, 1, $P{GRUPORUTA_ID}) AND CR.FECCORRIDA BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL} GROUP BY CR.FECCORRIDA, RT.RUTA_ID, RT.NUMRUTA, RT.DESCRUTA, - CR.ROLOPERATIVO_ID) TAB -]]> + CR.ROLOPERATIVO_ID) TAB]]>