diff --git a/pom.xml b/pom.xml index a2a326e4c..942b34d7c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores ventaboletosadm - 1.23.2 + 1.24.0 war diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java index 5b88e1b7d..3b129c150 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java @@ -66,7 +66,11 @@ public class RelatorioBilhetesVendidos extends Relatorio { sql.append(" B.IMPORTEPEDAGIO PEDAGIO, "); sql.append(" B.IMPORTESEGURO SEGURO, "); sql.append(" u.NOMBUSUARIO BILHETEIRO, "); - sql.append(" uc.NOMBUSUARIO BILHETEIRO_CANCELAMENTO "); + sql.append(" uc.NOMBUSUARIO BILHETEIRO_CANCELAMENTO, "); + sql.append(" B.NOMBPASAJERO AS PASSAGEIRO, "); + sql.append(" B.DESCNUMDOC AS DOC, "); + sql.append(" COALESCE(b.NUMOPERACION, bo.NUMOPERACION) AS LOCALIZADOR "); + sql.append(" FROM caja B "); sql.append(" LEFT JOIN boleto bo ON (bo.boleto_id = b.transacaooriginal_id AND b.indstatusboleto = 'C') "); @@ -148,7 +152,10 @@ public class RelatorioBilhetesVendidos extends Relatorio { sql.append(" B.IMPORTEPEDAGIO PEDAGIO, "); sql.append(" B.IMPORTESEGURO SEGURO, "); sql.append(" u.NOMBUSUARIO BILHETEIRO, "); - sql.append(" uc.NOMBUSUARIO BILHETEIRO_CANCELAMENTO "); + sql.append(" uc.NOMBUSUARIO BILHETEIRO_CANCELAMENTO, "); + sql.append(" B.NOMBPASAJERO AS PASSAGEIRO, "); + sql.append(" B.DESCNUMDOC AS DOC, "); + sql.append(" COALESCE(b.NUMOPERACION, bo.NUMOPERACION) AS LOCALIZADOR "); sql.append(" FROM caja B "); sql.append(" LEFT JOIN boleto bo ON (bo.boleto_id = b.transacaooriginal_id AND b.indstatusboleto = 'C') "); @@ -270,6 +277,9 @@ public class RelatorioBilhetesVendidos extends Relatorio { dataResult.put("SEGURO", rset.getString("SEGURO")); dataResult.put("BILHETEIRO", rset.getString("BILHETEIRO")); dataResult.put("BILHETEIRO_CANCELAMENTO", rset.getString("BILHETEIRO_CANCELAMENTO")); + dataResult.put("PASSAGEIRO", rset.getString("PASSAGEIRO")); + dataResult.put("DOC", rset.getString("DOC")); + dataResult.put("LOCALIZADOR", rset.getString("LOCALIZADOR")); this.dados.add(dataResult); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jasper index b41f922b6..452182d48 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jrxml index 32bb0328b..64893363f 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidos.jrxml @@ -1,8 +1,8 @@ - - - - + + + + @@ -65,13 +65,16 @@ + + + - + - + @@ -79,7 +82,7 @@ - + @@ -87,7 +90,7 @@ - + @@ -95,18 +98,15 @@ - + - - - - + @@ -114,7 +114,7 @@ - + @@ -122,7 +122,7 @@ - + @@ -130,7 +130,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -146,14 +146,14 @@ - + - + @@ -161,7 +161,7 @@ - + @@ -170,413 +170,530 @@ - + - + + + + - + - + + + + - + - + + + + - + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - + - + + + + - + - + + + + - + - + + + + - + - + - + + + + - + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - + + + + - + - - - - - - - - - + + + + - + - + - + + + + - + - + - + + + + - + - + - + + + + - + - + + + + - + - + - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java index 0aee863f5..0db78c6f8 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java @@ -46,9 +46,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendas @Scope("prototype") public class RelatorioBilhetesVendidosController extends MyGenericForwardComposer { - /** - * - */ private static final long serialVersionUID = 1L; @Autowired @@ -108,7 +105,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose } private void executarPesquisaAgencia() { - HibernateSearchObject puntoVentaBusqueda = new HibernateSearchObject(PuntoVenta.class, pagingPuntoVenta.getPageSize()); + HibernateSearchObject puntoVentaBusqueda = new HibernateSearchObject<>(PuntoVenta.class, pagingPuntoVenta.getPageSize()); puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%"); puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE); @@ -202,7 +199,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose parametros.put("DATA_INICIAL", (java.util.Date) this.datInicial.getValue()); parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue()); parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioBilhetesVendidosController.window.title")); - parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString()); + parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario()); String status = ""; if (chkCancelado.isChecked()) {