diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioTrechoVendido.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioTrechoVendido.jasper new file mode 100644 index 000000000..d7b04f25d Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioTrechoVendido.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioTrechoVendido.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioTrechoVendido.jrxml new file mode 100644 index 000000000..fe77906b4 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioTrechoVendido.jrxml @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + 0 + THEN 1 + ELSE NULL + END) AS VENDA +FROM + CAJA c +LEFT JOIN PARADA origem +ON + ( + c.ORIGEN_ID = origem.PARADA_ID + ) +LEFT JOIN PARADA destino +ON + ( + c.DESTINO_ID = destino.PARADA_ID + ) +LEFT JOIN CORRIDA cor +ON + ( + c.CORRIDA_ID = cor.CORRIDA_ID + AND c.FECCORRIDA = cor.FECCORRIDA + ) +LEFT JOIN EMPRESA e +ON + ( + e.EMPRESA_ID = c.EMPRESAPUNTOVENTA_ID + ) +WHERE + c.FECCORRIDA BETWEEN $P{DATA_INICIO} AND $P{DATA_FINAL} +AND c.PUNTOVENTA_ID = $P{PUNTOVENTA_ID} +AND e.NOMBEMPRESA LIKE $P{NOMBEMPRESA_SEARCH} +GROUP BY + origem.DESCPARADA , + destino.DESCPARADA , + TO_CHAR(cor.FECHORSALIDA,'HH:MI'), + e.NOMBEMPRESA +ORDER BY + origem.DESCPARADA, + destino.DESCPARADA, + TO_CHAR(cor.FECHORSALIDA,'HH:MI')]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="1" splitType="Stretch"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +