diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java index df3788509..b2a961b4e 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java @@ -49,7 +49,8 @@ public class RelatorioVendasBilheteiro extends Relatorio { sql.append(" c.IMPORTEPEDAGIO PEDAGIO," ); sql.append(" c.IMPORTETAXAEMBARQUE TX_EMBARQUE," ); sql.append(" c.PRECIOPAGADO TARIFA," ); - sql.append(" (NVL(c.PRECIOPAGADO,0)+(NVL(c.IMPORTEPEDAGIO,0)+ NVL(c.IMPORTETAXAEMBARQUE,0)+ NVL(c.IMPORTESEGURO,0))) TOTAL_BILHETE" ); + sql.append(" (NVL(c.PRECIOPAGADO,0)+(NVL(c.IMPORTEPEDAGIO,0)+ NVL(c.IMPORTETAXAEMBARQUE,0)+ NVL(c.IMPORTESEGURO,0))) TOTAL_BILHETE, " ); + sql.append(" cs.DESCCLASE CLASSE "); sql.append(" from caja c "); sql.append(" join PUNTO_VENTA pv on c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID "); @@ -57,6 +58,7 @@ public class RelatorioVendasBilheteiro extends Relatorio { sql.append(" join PARADA p_origen on p_origen.PARADA_ID = c.ORIGEN_ID "); sql.append(" join PARADA p_destino on p_destino.PARADA_ID = c.DESTINO_ID "); sql.append(" join CATEGORIA ct on ct.CATEGORIA_ID = c.CATEGORIA_ID "); + sql.append(" join CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = c.CLASESERVICIO_ID "); sql.append(" where "); sql.append(" c.MARCA_ID = :MARCA_ID "); sql.append(" and c.FECHORVENTA >= :DATA_INICIAL "); @@ -106,6 +108,7 @@ public class RelatorioVendasBilheteiro extends Relatorio { dataResult.put("STATUS_PASSAGEM", IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue() ); dataResult.put("SERVICO", rset.getBigDecimal("SERVICO")); dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM")); + dataResult.put("CLASSE", rset.getString("CLASSE")); this.dados.add(dataResult); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper index d872f7137..b3ec0b3bb 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml index e69de29bb..bfc8cb9a5 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml @@ -0,0 +1,377 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +