diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaPacoteVoucher.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaPacoteVoucher.java index 074385aa0..357095f10 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaPacoteVoucher.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaPacoteVoucher.java @@ -256,7 +256,7 @@ public class RelatorioVendaPacoteVoucher extends Relatorio { StringBuilder sQuery = new StringBuilder(); sQuery.append("SELECT B.NUMASIENTO, CONCAT(DEST.CVEPARADA,CONCAT(' - ',DEST.DESCPARADA)) AS DESTINO, CONCAT(ORI.CVEPARADA,CONCAT(' - ',ORI.DESCPARADA)) AS ORIGEM, ") .append("TVP.DESCEMAIL,TTP.DESCTIPOTARIFA,TO_CHAR(B.FECHORVIAJE,'DD/MM/YYYY HH24:MI') AS FECHORVIAJE,TVP.IDIOMA,PC.NOMCONVENIO,TVP.NOMEPASSAGEIRO, ") - .append("TVP.TIPODOC,TVP.DOCUMENTO,TVP.DESCTELEFONE,CT.DESCCATEGORIA,C.CORRIDA_ID,C.MARCA_ID ") + .append("TVP.TIPODOC,TVP.DOCUMENTO,TVP.DESCTELEFONE,CT.DESCCATEGORIA,C.CORRIDA_ID,C.MARCA_ID,R.DESCRUTA ") .append("FROM TARIFA_VENDA_PACOTE TVP ") .append("JOIN PACOTE_TARIFA PT ON PT.PACOTETARIFA_ID = TVP.PACOTETARIFA_ID ") .append("JOIN TIPO_TARIFA_PACOTE TTP ON TTP.TIPOTARIFAPACOTE_ID = PT.TIPOTARIFAPACOTE_ID ") @@ -266,6 +266,7 @@ public class RelatorioVendaPacoteVoucher extends Relatorio { .append("LEFT JOIN CORRIDA C ON C.CORRIDA_ID = B.CORRIDA_ID AND C.FECCORRIDA = B.FECCORRIDA ") .append("LEFT JOIN CATEGORIA CT ON CT.CATEGORIA_ID = B.CATEGORIA_ID ") .append("LEFT JOIN PACOTE_CONVENIO PC ON PC.PACOTECONVENIO_ID = TVP.PACOTECONVENIO_ID ") + .append("LEFT JOIN RUTA R ON R.RUTA_ID = B.RUTA_ID ") .append("WHERE TVP.VENDAPACOTE_ID = :vendapacoteId "); log.info(sQuery); stmt = new NamedParameterStatement(conexao, sQuery.toString()); @@ -288,6 +289,7 @@ public class RelatorioVendaPacoteVoucher extends Relatorio { pacoteTarifaVoucher.setTipoDoc(rset.getString("tipodoc")); pacoteTarifaVoucher.setNumTelefone(rset.getString("desctelefone")); pacoteTarifaVoucher.setDesccategoria(rset.getString("desccategoria")); + pacoteTarifaVoucher.setDescRuta(rset.getString("descruta")); if(rset.getInt("corrida_id") > 0) { pacoteTarifaVoucher.setCorridaId(rset.getInt("corrida_id")); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_es.properties index 11941d2f1..3e1fa151d 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_es.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_es.properties @@ -1,13 +1,17 @@ -label.nomPasajero = Passageiro -label.numDoc = Doc +label.nomPasajero = Passageiro: +label.numDoc = Doc: label.tipoDoc = Tipo Doc -label.corrida = Ruta -label.descEmail = E-mail -label.numTelefone = Tel -label.desctipotarifa = Categoria +label.corrida = Ruta: +label.descEmail = E-mail: +label.numTelefone = Tel: +label.desctipotarifa = Categoria: label.nomConvenio = Convênio -label.asiento = Assento -label.descOrigen = Origem -label.descDestino = Destino -label.fecHorViaje = Hora -label.desctipopassagem = Tipo Passagem \ No newline at end of file +label.asiento = Assento: +label.descOrigen = Origem: +label.descDestino = Destino: +label.fecHorViaje = Fecha: +label.desctipopassagem = Clase: +label.dadosPassageiros = Dados Passageiros +label.dadosViagem = Dados da Viagem +label.dadosAssento = Assento +label.vagao = Vagão: \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_pt_BR.properties index 4cae4b9f0..035dddc7a 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_pt_BR.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/SubReportePacoteTarifasVouchers_pt_BR.properties @@ -1,13 +1,17 @@ -label.nomPasajero = Passageiro -label.numDoc = Doc +label.nomPasajero = Passageiro: +label.numDoc = Doc: label.tipoDoc = Tipo Doc -label.corrida = Corrida -label.descEmail = E-mail -label.numTelefone = Tel -label.desctipotarifa = Categoria +label.corrida = Rota: +label.descEmail = E-mail: +label.numTelefone = Tel: +label.desctipotarifa = Categoria: label.nomConvenio = Convênio -label.asiento = Assento -label.descOrigen = Origem -label.descDestino = Destino -label.fecHorViaje = Hora -label.desctipopassagem = Tipo Passagem \ No newline at end of file +label.asiento = Assento: +label.descOrigen = Origem: +label.descDestino = Destino: +label.fecHorViaje = Data/Hora: +label.desctipopassagem = Classe: +label.dadosPassageiros = Dados Passageiros +label.dadosViagem = Dados da Viagem +label.dadosAssento = Assento +label.vagao = Vagão: \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jasper index 064b0bc08..e5f80870f 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jrxml index bdb2f930f..78e017a75 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReporteItemAdicionalVouchers.jrxml @@ -1,5 +1,5 @@ - + @@ -13,19 +13,21 @@ - + - - + + + - - + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jasper index 2fb2498c0..6c2df5ad5 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jrxml index ad813c223..bf7239d0b 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/SubReportePacoteTarifasVouchers.jrxml @@ -1,5 +1,5 @@ - + @@ -11,85 +11,160 @@ - - + + + + + - + - - + + + - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - + + + - - + + + + + - - + + + - - + + + - - + + + - - + + + - - - + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/pacote/PacoteTarifaVoucher.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/pacote/PacoteTarifaVoucher.java index 6f3e8f899..c4235633c 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/pacote/PacoteTarifaVoucher.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/pacote/PacoteTarifaVoucher.java @@ -18,6 +18,7 @@ public class PacoteTarifaVoucher { private String fecHorViaje; private String desccategoria; private Integer corridaId; + private String descRuta; public String getNomPasajero() { return nomPasajero; @@ -146,4 +147,12 @@ public class PacoteTarifaVoucher { this.corridaId = corridaId; } + public String getDescRuta() { + return descRuta; + } + + public void setDescRuta(String descRuta) { + this.descRuta = descRuta; + } + } diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pacote/BusquedaManutencaoPacoteController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pacote/BusquedaManutencaoPacoteController.java index e0c2500dd..d67662a9e 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pacote/BusquedaManutencaoPacoteController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pacote/BusquedaManutencaoPacoteController.java @@ -80,6 +80,7 @@ public class BusquedaManutencaoPacoteController extends MyGenericForwardComposer } enderecoApanheBusqueda.addFilterEqual("activo", Boolean.TRUE); + enderecoApanheBusqueda.addFilterNull("vendaPacote.motivoCancelVendaPacoteId"); plwEnderecoApanhe.init(enderecoApanheBusqueda, enderecoApanheList, pagingEnderecoApanhe); if (enderecoApanheList.getData().length == 0) {