From 2361166a0f2e3498dfbc5d29837cdcf8d27c2798 Mon Sep 17 00:00:00 2001 From: walace Date: Fri, 4 May 2018 21:45:04 +0000 Subject: [PATCH] Inserido um novo layout do relatorio de vendas pta. bug#10686 dev:daniel qua:renato git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@81623 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../impl/RelatorioVendasInternetPTA.java | 340 ++++++++++++++++ .../relatorios/impl/RelatorioVendasPTA.java | 25 +- .../RelatorioVendasInternetPTA_es.properties | 37 ++ ...elatorioVendasInternetPTA_pt_BR.properties | 37 ++ .../RelatorioVendasInternetPTA.jrxml | 384 ++++++++++++++++++ .../RelatorioVendasInternetPTABean.java | 207 ++++++++++ .../RelatorioVendasPTAController.java | 55 ++- web/WEB-INF/i3-label_es_MX.label | 6 +- web/WEB-INF/i3-label_pt_BR.label | 3 + .../relatorios/filtroRelatorioVendasPTA.zul | 28 +- 10 files changed, 1088 insertions(+), 34 deletions(-) create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasInternetPTA.java create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_es.properties create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_pt_BR.properties create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasInternetPTA.jrxml create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioVendasInternetPTABean.java diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasInternetPTA.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasInternetPTA.java new file mode 100644 index 000000000..7cc735a99 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasInternetPTA.java @@ -0,0 +1,340 @@ +package com.rjconsultores.ventaboletos.relatorios.impl; + +import java.math.BigDecimal; +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasPTA.SituacaoBoleto; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasInternetPTABean; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; + +import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; + +public class RelatorioVendasInternetPTA extends Relatorio { + + public RelatorioVendasInternetPTA(Map parametros, Connection conexao) { + super(parametros, conexao); + } + + private List lsDadosRelatorio; + + @Override + protected void processaParametros() throws Exception { + + this.setCustomDataSource(new DataSource(this) { + @Override + public void initDados() throws Exception { + + Connection conexao = this.relatorio.getConexao(); + + Map parametros = this.relatorio.getParametros(); + + String dataInicial = parametros.get("DATA_INICIAL").toString() + " 00:00:00"; + String dataFinal = parametros.get("DATA_FINAL").toString() + " 23:59:59"; + Empresa empresa = (Empresa) parametros.get("EMPRESA"); + String agencia = (String) parametros.get("PUNTOVENTA"); + SituacaoBoleto situacaoBoleto = (SituacaoBoleto) parametros.get("SITUACAO_BOLETO"); + + String sql = getSql(empresa, agencia, dataInicial, dataFinal, situacaoBoleto); + + NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); + + stmt.setTimestamp("DATA_INICIAL", (Timestamp) parametros.get("DATA_INICIAL")); + stmt.setTimestamp("DATA_FINAL", (Timestamp) parametros.get("DATA_FINAL")); + + ResultSet rset = null; + rset = stmt.executeQuery(); + + lsDadosRelatorio = new ArrayList(); + BigDecimal saldo = BigDecimal.ZERO; + BigDecimal total = BigDecimal.ZERO; + + while (rset.next()) { + + RelatorioVendasInternetPTABean vendasPTABean = new RelatorioVendasInternetPTABean(); + + vendasPTABean.setPreco((BigDecimal) rset.getObject("preco")); + vendasPTABean.setTaxas((BigDecimal) rset.getObject("taxas")); + vendasPTABean.setBilhete((String) rset.getObject("bilhete")); + vendasPTABean.setNomeAgenciaVenda((String) rset.getObject("nomeAgenciaVenda")); + vendasPTABean.setAgencia((String) rset.getObject("agencia")); + vendasPTABean.setStatus((String) rset.getObject("status")); + vendasPTABean.setServico((BigDecimal) rset.getObject("servico")); + vendasPTABean.setPoltrona((String) rset.getObject("poltrona")); + vendasPTABean.setDescricaoLinha((String) rset.getObject("descricaoLinha")); + vendasPTABean.setDescricaoOrigem((String) rset.getObject("descricaoOrigem")); + vendasPTABean.setDescricaoDestino((String) rset.getObject("descricaoDestino")); + vendasPTABean.setDataEmbarque((Date) rset.getObject("dataEmbarque")); + vendasPTABean.setDataEmissao((Date) rset.getObject("dataEmissao")); + vendasPTABean.setDataVenda((Date) rset.getObject("dataVenda")); + vendasPTABean.setTipoVenta((String) rset.getObject("tipoVenta")); + + if (vendasPTABean.getStatus().equals("VENDIDO")) { + vendasPTABean.setSituacaoVendido("V"); + saldo = saldo.add(vendasPTABean.getPreco() != null ? vendasPTABean.getPreco() : BigDecimal.ZERO); + } else { + BigDecimal situacao = (BigDecimal) rset.getObject("situacaoCancelado"); + if (situacao != null) { + vendasPTABean.setSituacaoCancelado(situacao.toString()); + if (vendasPTABean.getSituacaoCancelado().equals("31")) { + vendasPTABean.setSituacaoCancelado("A"); + } else if (vendasPTABean.getSituacaoCancelado().equals("32")) { + vendasPTABean.setSituacaoCancelado("D"); + } else if (vendasPTABean.getSituacaoCancelado().equals("23")) { + vendasPTABean.setSituacaoCancelado("R"); + } else if (vendasPTABean.getSituacaoCancelado().equals("10")) { + vendasPTABean.setSituacaoCancelado("TP"); + } + } + + total = total.add(vendasPTABean.getPreco() != null ? vendasPTABean.getPreco() : BigDecimal.ZERO); + } + + lsDadosRelatorio.add(vendasPTABean); + } + + if (lsDadosRelatorio.size() > 0) { + + setLsDadosRelatorio(lsDadosRelatorio); + parametros.put("SALDO", saldo.subtract(total)); + parametros.put("TOTAL", total); + } + } + }); + } + + public void setLsDadosRelatorio(List lsDadosRelatorio) { + this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio)); + this.lsDadosRelatorio = lsDadosRelatorio; + } + + private String getSql(Empresa empresa, String agencia, String fecInicio, String fecFinal, SituacaoBoleto situacaoBoleto) { + + StringBuilder sql = new StringBuilder(); + String motivoCancelacion = ""; + + if (situacaoBoleto.getCodigo().equals(31)) { + motivoCancelacion = "31"; + } else if (situacaoBoleto.getCodigo().equals(32)) { + motivoCancelacion = "32"; + } else if (situacaoBoleto.getCodigo().equals(23)) { + motivoCancelacion = "23"; + } else if (situacaoBoleto.getCodigo().equals(10)) { + motivoCancelacion = "10"; + } else { + motivoCancelacion = "31, 32, 23, 10"; + } + + if (situacaoBoleto.getCodigo().equals(1)) { // Somente Vendidos + sql.append("select * from ( SELECT ORIGINAL.BOLETO_ID, "); + sql.append(" 'VENDIDO' AS status, "); + sql.append(" case when ORIGINAL.tipoventa_id = 12 then 'INTERNET' WHEN ORIGINAL.tipoventa_id in(5,18,41,49,81) then 'PTA' END tipoVenta, "); + sql.append(" pv.NOMBPUNTOVENTA AS nomeAgenciaVenda, "); + sql.append(" pe.NOMBPUNTOVENTA AS agencia, "); + sql.append(" original.NUMFOLIOSISTEMA AS bilhete, "); + sql.append(" original.CORRIDA_ID AS servico, "); + sql.append(" original.NUMASIENTO AS poltrona, "); + sql.append(" utilizado.MOTIVOCANCELACION_ID AS situacaoCancelado, "); + sql.append(" UTILIZADO.FECCREACION AS dataEmissao, "); + sql.append(" ORIGINAL.FECHORVIAJE AS dataEmbarque, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID, "); + sql.append(" ORIGINAL.PRECIOPAGADO AS preco, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataVenda, "); + sql.append(" ORIGINAL.IMPORTEPEDAGIO + original.IMPORTESEGURO + original.IMPORTETAXAEMBARQUE + original.IMPORTEOUTROS AS taxas, "); + sql.append(" r.DESCRUTA AS descricaoLinha, "); + sql.append(" po.DESCPARADA AS descricaoOrigem, "); + sql.append(" pd.DESCPARADA AS descricaoDestino "); + sql.append("FROM BOLETO ORIGINAL "); + sql.append("LEFT JOIN BOLETO UTILIZADO ON (original.boleto_id = UTILIZADO.boletooriginal_id AND utilizado.INDSTATUSBOLETO = 'E') "); + sql.append("LEFT JOIN PUNTO_VENTA pv on(ORIGINAL.PUNTOVENTA_ID = pv.PUNTOVENTA_ID) "); + sql.append("LEFT JOIN PUNTO_VENTA pe on(UTILIZADO.PUNTOVENTA_ID = pe.PUNTOVENTA_ID) "); + sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); + sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); + sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(ORIGINAL.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('V','T') "); + sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND ORIGINAL.PUNTOVENTA_ID in (" + agencia + ") "); + sql.append("AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " "); + sql.append(") tab order by tab.tipoVenta, tab.status "); + } else if (situacaoBoleto.getCodigo().equals(-1)) { // Todos (Vendidos e Cancelados) + + sql.append("select * from ( SELECT ORIGINAL.BOLETO_ID, "); + sql.append(" 'VENDIDO' AS status, "); + sql.append(" case when ORIGINAL.tipoventa_id = 12 then 'INTERNET' WHEN ORIGINAL.tipoventa_id in(5,18,41,49,81) then 'PTA' END tipoVenta, "); + sql.append(" pv.NOMBPUNTOVENTA AS nomeAgenciaVenda, "); + sql.append(" pe.NOMBPUNTOVENTA AS agencia, "); + sql.append(" original.NUMFOLIOSISTEMA AS bilhete, "); + sql.append(" original.CORRIDA_ID AS servico, "); + sql.append(" original.NUMASIENTO AS poltrona, "); + sql.append(" utilizado.MOTIVOCANCELACION_ID AS situacaoCancelado, "); + sql.append(" UTILIZADO.FECCREACION AS dataEmissao, "); + sql.append(" ORIGINAL.FECHORVIAJE AS dataEmbarque, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID, "); + sql.append(" ORIGINAL.PRECIOPAGADO AS preco, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataVenda, "); + sql.append(" ORIGINAL.IMPORTEPEDAGIO + original.IMPORTESEGURO + original.IMPORTETAXAEMBARQUE + original.IMPORTEOUTROS AS taxas, "); + sql.append(" r.DESCRUTA AS descricaoLinha, "); + sql.append(" po.DESCPARADA AS descricaoOrigem, "); + sql.append(" pd.DESCPARADA AS descricaoDestino "); + sql.append("FROM BOLETO ORIGINAL "); + sql.append("LEFT JOIN BOLETO UTILIZADO ON (original.boleto_id = UTILIZADO.boletooriginal_id AND utilizado.INDSTATUSBOLETO = 'E') "); + sql.append("LEFT JOIN PUNTO_VENTA pv on(ORIGINAL.PUNTOVENTA_ID = pv.PUNTOVENTA_ID) "); + sql.append("LEFT JOIN PUNTO_VENTA pe on(UTILIZADO.PUNTOVENTA_ID = pe.PUNTOVENTA_ID) "); + sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); + sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); + sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(ORIGINAL.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('V','T') "); + sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND ORIGINAL.PUNTOVENTA_ID in (" + agencia + ") "); + sql.append("AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " "); + sql.append("UNION ALL "); + sql.append("SELECT ORIGINAL.BOLETO_ID, "); + sql.append(" 'CANCELADO' AS status, "); + sql.append(" case when ORIGINAL.tipoventa_id = 12 then 'INTERNET' WHEN ORIGINAL.tipoventa_id in(5,18,41,49,81) then 'PTA' END tipoVenta, "); + sql.append(" pc.NOMBPUNTOVENTA AS nomeAgenciaVenda, "); + sql.append(" pv.NOMBPUNTOVENTA AS agencia, "); + sql.append(" ORIGINAL.NUMFOLIOSISTEMA AS bilhete, "); + sql.append(" original.CORRIDA_ID AS servico, "); + sql.append(" original.NUMASIENTO AS poltrona, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID AS situacaoCancelado, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataEmissao, "); + sql.append(" ORIGINAL.FECHORVIAJE AS dataEmbarque, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID, "); + sql.append(" ORIGINAL.PRECIOPAGADO AS preco, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataVenda, "); + sql.append(" ORIGINAL.IMPORTEPEDAGIO + original.IMPORTESEGURO + original.IMPORTETAXAEMBARQUE + original.IMPORTEOUTROS AS taxas, "); + sql.append(" r.DESCRUTA AS descricaoLinha, "); + sql.append(" po.DESCPARADA AS descricaoOrigem, "); + sql.append(" pd.DESCPARADA AS descricaoDestino "); + sql.append("FROM BOLETO ORIGINAL "); + sql.append("LEFT JOIN BOLETO UTILIZADO ON (ORIGINAL.BOLETOoriginal_ID = UTILIZADO.BOLETO_ID AND UTILIZADO.INDSTATUSBOLETO IN ('V','T')) "); + sql.append("LEFT JOIN PUNTO_VENTA pv on(ORIGINAL.PUNTOVENTA_ID = pv.PUNTOVENTA_ID) "); + sql.append("LEFT JOIN PUNTO_VENTA pc on(UTILIZADO.PUNTOVENTA_ID = pc.PUNTOVENTA_ID) "); + sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); + sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); + sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(original.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('C') AND ORIGINAL.MOTIVOCANCELACION_ID in (" + motivoCancelacion + ") "); + sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND (utilizado.PUNTOVENTA_ID in (" + agencia + ")) AND ORIGINAL.MOTIVOCANCELACION_ID IN ( " + motivoCancelacion + ") "); + + sql.append("AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " "); + sql.append(") tab order by tab.tipoVenta, tab.status "); + + } else if (situacaoBoleto.getCodigo().equals(2)) { // Entregue + + sql.append("select * from ( SELECT ORIGINAL.BOLETO_ID, "); + sql.append(" 'VENDIDO' AS status, "); + sql.append(" case when ORIGINAL.tipoventa_id = 12 then 'INTERNET' WHEN ORIGINAL.tipoventa_id in(5,18,41,49,81) then 'PTA' END tipoVenta, "); + sql.append(" pv.NOMBPUNTOVENTA AS nomeAgenciaVenda, "); + sql.append(" pe.NOMBPUNTOVENTA AS agencia, "); + sql.append(" original.NUMFOLIOSISTEMA AS bilhete, "); + sql.append(" original.CORRIDA_ID AS servico, "); + sql.append(" original.NUMASIENTO AS poltrona, "); + sql.append(" utilizado.MOTIVOCANCELACION_ID AS situacaoCancelado, "); + sql.append(" UTILIZADO.FECCREACION AS dataEmissao, "); + sql.append(" ORIGINAL.FECHORVIAJE AS dataEmbarque, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID, "); + sql.append(" ORIGINAL.PRECIOPAGADO AS preco, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataVenda, "); + sql.append(" ORIGINAL.IMPORTEPEDAGIO + original.IMPORTESEGURO + original.IMPORTETAXAEMBARQUE + original.IMPORTEOUTROS AS taxas, "); + sql.append(" r.DESCRUTA AS descricaoLinha, "); + sql.append(" po.DESCPARADA AS descricaoOrigem, "); + sql.append(" pd.DESCPARADA AS descricaoDestino "); + sql.append("FROM BOLETO ORIGINAL "); + sql.append("INNER JOIN BOLETO UTILIZADO ON (original.boleto_id = UTILIZADO.boletooriginal_id AND utilizado.INDSTATUSBOLETO = 'E') "); + sql.append("LEFT JOIN PUNTO_VENTA pv on(ORIGINAL.PUNTOVENTA_ID = pv.PUNTOVENTA_ID) "); + sql.append("LEFT JOIN PUNTO_VENTA pe on(UTILIZADO.PUNTOVENTA_ID = pe.PUNTOVENTA_ID) "); + sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); + sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); + sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(ORIGINAL.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('V','T') "); + sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND ORIGINAL.PUNTOVENTA_ID in (" + agencia + ") "); + sql.append("AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " "); + sql.append(") tab order by tab.tipoVenta, tab.status "); + + } else if (situacaoBoleto.getCodigo().equals(3)) { // Não Entregue + + sql.append("select * from ( SELECT ORIGINAL.BOLETO_ID, "); + sql.append(" 'VENDIDO' AS status, "); + sql.append(" case when ORIGINAL.tipoventa_id = 12 then 'INTERNET' WHEN ORIGINAL.tipoventa_id in(5,18,41,49,81) then 'PTA' END tipoVenta, "); + sql.append(" pv.NOMBPUNTOVENTA AS nomeAgenciaVenda, "); + sql.append(" pe.NOMBPUNTOVENTA AS agencia, "); + sql.append(" original.NUMFOLIOSISTEMA AS bilhete, "); + sql.append(" original.CORRIDA_ID AS servico, "); + sql.append(" original.NUMASIENTO AS poltrona, "); + sql.append(" utilizado.MOTIVOCANCELACION_ID AS situacaoCancelado, "); + sql.append(" UTILIZADO.FECCREACION AS dataEmissao, "); + sql.append(" ORIGINAL.FECHORVIAJE AS dataEmbarque, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID, "); + sql.append(" ORIGINAL.PRECIOPAGADO AS preco, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataVenda, "); + sql.append(" ORIGINAL.IMPORTEPEDAGIO + original.IMPORTESEGURO + original.IMPORTETAXAEMBARQUE + original.IMPORTEOUTROS AS taxas, "); + sql.append(" r.DESCRUTA AS descricaoLinha, "); + sql.append(" po.DESCPARADA AS descricaoOrigem, "); + sql.append(" pd.DESCPARADA AS descricaoDestino "); + sql.append("FROM BOLETO ORIGINAL "); + sql.append("LEFT JOIN BOLETO UTILIZADO ON (original.boleto_id = UTILIZADO.boletooriginal_id AND utilizado.INDSTATUSBOLETO <> 'E') "); + sql.append("LEFT JOIN PUNTO_VENTA pv on(ORIGINAL.PUNTOVENTA_ID = pv.PUNTOVENTA_ID) "); + sql.append("LEFT JOIN PUNTO_VENTA pe on(UTILIZADO.PUNTOVENTA_ID = pe.PUNTOVENTA_ID) "); + sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); + sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); + sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(ORIGINAL.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('V','T') "); + sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND ORIGINAL.PUNTOVENTA_ID in (" + agencia + ") "); + sql.append("AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " "); + sql.append(") tab order by tab.tipoVenta, tab.status "); + + } else { // somente cancelados + + sql.append("select * from ( SELECT ORIGINAL.BOLETO_ID, "); + sql.append(" 'CANCELADO' AS status, "); + sql.append(" case when ORIGINAL.tipoventa_id = 12 then 'INTERNET' WHEN ORIGINAL.tipoventa_id in(5,18,41,49,81) then 'PTA' END tipoVenta, "); + sql.append(" pc.NOMBPUNTOVENTA AS nomeAgenciaVenda, "); + sql.append(" pv.NOMBPUNTOVENTA AS agencia, "); + sql.append(" ORIGINAL.NUMFOLIOSISTEMA AS bilhete, "); + sql.append(" original.CORRIDA_ID AS servico, "); + sql.append(" original.NUMASIENTO AS poltrona, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID AS situacaoCancelado, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataEmissao, "); + sql.append(" ORIGINAL.FECHORVIAJE AS dataEmbarque, "); + sql.append(" ORIGINAL.MOTIVOCANCELACION_ID, "); + sql.append(" ORIGINAL.PRECIOBASE AS preco, "); + sql.append(" ORIGINAL.FECHORVENTA AS dataVenda, "); + sql.append(" ORIGINAL.IMPORTEPEDAGIO + original.IMPORTESEGURO + original.IMPORTETAXAEMBARQUE + original.IMPORTEOUTROS AS taxas, "); + sql.append(" r.DESCRUTA AS descricaoLinha, "); + sql.append(" po.DESCPARADA AS descricaoOrigem, "); + sql.append(" pd.DESCPARADA AS descricaoDestino "); + sql.append("FROM BOLETO ORIGINAL "); + sql.append("LEFT JOIN BOLETO UTILIZADO ON (ORIGINAL.BOLETOoriginal_ID = UTILIZADO.BOLETO_ID AND UTILIZADO.INDSTATUSBOLETO IN ('V','T')) "); + sql.append("LEFT JOIN PUNTO_VENTA pv on(ORIGINAL.PUNTOVENTA_ID = pv.PUNTOVENTA_ID) "); + sql.append("LEFT JOIN PUNTO_VENTA pc on(UTILIZADO.PUNTOVENTA_ID = pc.PUNTOVENTA_ID) "); + sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); + sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); + sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(original.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('C') AND ORIGINAL.MOTIVOCANCELACION_ID in (" + motivoCancelacion + ")"); + sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); + sql.append(" AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND (utilizado.PUNTOVENTA_ID in (" + agencia + ")) "); + sql.append(") tab order by tab.tipoVenta, tab.status "); + } + + return sql.toString(); + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPTA.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPTA.java index f3a935aea..3550c2ae1 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPTA.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPTA.java @@ -4,14 +4,12 @@ import java.math.BigDecimal; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Timestamp; -import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import com.rjconsultores.ventaboletos.entidad.Empresa; -import com.rjconsultores.ventaboletos.enums.SituacaoBoleto; import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPTABean; @@ -23,7 +21,25 @@ public class RelatorioVendasPTA extends Relatorio { public RelatorioVendasPTA(Map parametros, Connection conexao) { super(parametros, conexao); + } + + public enum SituacaoBoleto { + TODAS(-1, "Todas"), ANULADO(31, "Anulado"), DEVOLVIDO(32, "Devolvido"), REMARCADO(23, "Remarcado"), TROCADO(10, "Trocado"), VENDIDO(1, "Vendido"), ENTREGUE(2, "Entregue"), NAO_ENTREGUE(3, "Não Entregue"); + + private String situacao; + private Integer codigo; + + private SituacaoBoleto(Integer codigo, String situacao) { + this.situacao = situacao; + this.codigo = codigo; + } + public String getSituacao() { + return this.situacao; + } + public Integer getCodigo() { + return codigo; + } } private List lsDadosRelatorio; @@ -253,11 +269,12 @@ public class RelatorioVendasPTA extends Relatorio { sql.append("INNER JOIN RUTA r on(original.ruta_id = r.ruta_id) "); sql.append("INNER JOIN PARADA po ON (ORIGINAL.ORIGEN_ID = po.PARADA_ID) "); sql.append("INNER JOIN PARADA pd ON (ORIGINAL.DESTINO_ID = pd.PARADA_ID) "); + sql.append("WHERE to_date(original.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL "); - sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('C') "); + sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('C') AND ORIGINAL.MOTIVOCANCELACION_ID in (" + motivoCancelacion + ")"); sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) "); sql.append(" AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " " ); - sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND (utilizado.PUNTOVENTA_ID in (" + agencia + ")) AND ORIGINAL.MOTIVOCANCELACION_ID IN ("+motivoCancelacion+") "); + sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND (utilizado.PUNTOVENTA_ID in (" + agencia + ")) "); } return sql.toString(); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_es.properties new file mode 100644 index 000000000..96136580f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_es.properties @@ -0,0 +1,37 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. + +#Labels cabeçalho +cabecalho.nome=Relatório Vendas Internet x PTA +cabecalho.relatorio=Relatório: +cabecalho.periodo=Período: +cabecalho.periodoA=à +cabecalho.dataHora=Data/Hora: +cabecalho.impressorPor=Impressor por: +cabecalho.pagina=Página +cabecalho.de=de +cabecalho.filtros=Filtros: +cabecalho.puntoventa=Agência: +cabecalho.usuario=Usuário: + +label.nomeVendaAgencia=Agência Atendimento +label.nomeAgenciaEmissao=Agência Emissão +label.nomeAgenciaCancelamento=Agência Cancelamento +label.dataEmissao=Data Emissão +label.dataEmbarque=Data Embarque +label.bilhete=Bilhete +label.dataEmissao=Data Emissão +label.preco=Preço +label.taxas=Taxas +label.origem= Origem +label.destino=Destino +label.descricaoLinha=Linha +label.servico=Servico +label.poltrona= Poltrona +label.dataInicial=Data Inicial: +label.dataFinal=Data Final: +label.empresa=Empresa: +label.situacao=Situacao +label.saldo=Saldo R$: +label.total=Total R$: +label.tipoVenda=Tipo Venda : \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_pt_BR.properties new file mode 100644 index 000000000..96136580f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasInternetPTA_pt_BR.properties @@ -0,0 +1,37 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. + +#Labels cabeçalho +cabecalho.nome=Relatório Vendas Internet x PTA +cabecalho.relatorio=Relatório: +cabecalho.periodo=Período: +cabecalho.periodoA=à +cabecalho.dataHora=Data/Hora: +cabecalho.impressorPor=Impressor por: +cabecalho.pagina=Página +cabecalho.de=de +cabecalho.filtros=Filtros: +cabecalho.puntoventa=Agência: +cabecalho.usuario=Usuário: + +label.nomeVendaAgencia=Agência Atendimento +label.nomeAgenciaEmissao=Agência Emissão +label.nomeAgenciaCancelamento=Agência Cancelamento +label.dataEmissao=Data Emissão +label.dataEmbarque=Data Embarque +label.bilhete=Bilhete +label.dataEmissao=Data Emissão +label.preco=Preço +label.taxas=Taxas +label.origem= Origem +label.destino=Destino +label.descricaoLinha=Linha +label.servico=Servico +label.poltrona= Poltrona +label.dataInicial=Data Inicial: +label.dataFinal=Data Final: +label.empresa=Empresa: +label.situacao=Situacao +label.saldo=Saldo R$: +label.total=Total R$: +label.tipoVenda=Tipo Venda : \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasInternetPTA.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasInternetPTA.jrxml new file mode 100644 index 000000000..d483f4644 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasInternetPTA.jrxml @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="32"> + <textField> + <reportElement x="212" y="5" width="361" height="27" uuid="766b74e4-28c9-4045-8538-343a8bc8e665"/> + <textElement textAlignment="Center" verticalAlignment="Middle"> + <font size="18" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression> + </textField> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioVendasInternetPTABean.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioVendasInternetPTABean.java new file mode 100644 index 000000000..5ba01f41b --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioVendasInternetPTABean.java @@ -0,0 +1,207 @@ +package com.rjconsultores.ventaboletos.relatorios.utilitarios; + +import java.math.BigDecimal; +import java.util.Date; + +public class RelatorioVendasInternetPTABean { + + private BigDecimal preco; + private BigDecimal taxas; + private String bilhete; + private String codLinha; + private String descricaoLinha; + private String codOrigem; + private String descricaoOrigem; + private String codDestino; + private String descricaoDestino; + private Date dataInicial; + private Date dataFinal; + private BigDecimal servico; + private String poltrona; + private String situacaoVendido; + private String nomeAgenciaVenda; + private String agencia; + private String status; + private Date dataEmissao; + private Date dataEmbarque; + private Date dataVenda; + private String situacaoCancelado; + private String tipoVenta; + + public BigDecimal getPreco() { + return preco; + } + + public void setPreco(BigDecimal preco) { + this.preco = preco; + } + + public BigDecimal getTaxas() { + return taxas; + } + + public void setTaxas(BigDecimal taxas) { + this.taxas = taxas; + } + + public String getBilhete() { + return bilhete; + } + + public void setBilhete(String bilhete) { + this.bilhete = bilhete; + } + + public String getDescricaoLinha() { + return descricaoLinha; + } + + public void setDescricaoLinha(String descricaoLinha) { + this.descricaoLinha = descricaoLinha; + } + + public Date getDataInicial() { + return dataInicial; + } + + public void setDataInicial(Date dataInicial) { + this.dataInicial = dataInicial; + } + + public Date getDataFinal() { + return dataFinal; + } + + public void setDataFinal(Date dataFinal) { + this.dataFinal = dataFinal; + } + + public String getCodOrigem() { + return codOrigem; + } + + public void setCodOrigem(String codOrigem) { + this.codOrigem = codOrigem; + } + + public String getDescricaoOrigem() { + return descricaoOrigem; + } + + public void setDescricaoOrigem(String descricaoOrigem) { + this.descricaoOrigem = descricaoOrigem; + } + + public String getCodDestino() { + return codDestino; + } + + public void setCodDestino(String codDestino) { + this.codDestino = codDestino; + } + + public String getDescricaoDestino() { + return descricaoDestino; + } + + public void setDescricaoDestino(String descricaoDestino) { + this.descricaoDestino = descricaoDestino; + } + + public String getCodLinha() { + return codLinha; + } + + public void setCodLinha(String codLinha) { + this.codLinha = codLinha; + } + + public BigDecimal getServico() { + return servico; + } + + public void setServico(BigDecimal servico) { + this.servico = servico; + } + + public String getPoltrona() { + return poltrona; + } + + public void setPoltrona(String poltrona) { + this.poltrona = poltrona; + } + + public String getSituacaoVendido() { + return situacaoVendido; + } + + public void setSituacaoVendido(String situacaoVendido) { + this.situacaoVendido = situacaoVendido; + } + + public String getSituacaoCancelado() { + return situacaoCancelado; + } + + public void setSituacaoCancelado(String situacaoCancelado) { + this.situacaoCancelado = situacaoCancelado; + } + + public String getNomeAgenciaVenda() { + return nomeAgenciaVenda; + } + + public void setNomeAgenciaVenda(String nomeAgenciaVenda) { + this.nomeAgenciaVenda = nomeAgenciaVenda; + } + + public String getAgencia() { + return agencia; + } + + public void setAgencia(String agencia) { + this.agencia = agencia; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Date getDataEmissao() { + return dataEmissao; + } + + public void setDataEmissao(Date dataEmissao) { + this.dataEmissao = dataEmissao; + } + + public Date getDataVenda() { + return dataVenda; + } + + public void setDataVenda(Date dataVenda) { + this.dataVenda = dataVenda; + } + + public Date getDataEmbarque() { + return dataEmbarque; + } + + public void setDataEmbarque(Date dataEmbarque) { + this.dataEmbarque = dataEmbarque; + } + + public String getTipoVenta() { + return tipoVenta; + } + + public void setTipoVenta(String tipoVenta) { + this.tipoVenta = tipoVenta; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioVendasPTAController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioVendasPTAController.java index e0526e8c0..d3dac23f0 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioVendasPTAController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioVendasPTAController.java @@ -18,18 +18,20 @@ import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.Event; import org.zkoss.zul.Bandbox; import org.zkoss.zul.Datebox; +import org.zkoss.zul.ListModelList; import org.zkoss.zul.Paging; +import org.zkoss.zul.Radiogroup; import org.zkoss.zul.Textbox; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.PuntoVenta; -import com.rjconsultores.ventaboletos.enums.SituacaoBoleto; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasInternetPTA; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasPTA; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasPTA.SituacaoBoleto; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.utilerias.DateUtil; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; -import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; @@ -50,9 +52,7 @@ public class RelatorioVendasPTAController extends MyGenericForwardComposer { @Autowired private EmpresaService empresaService; private List lsEmpresa; - private List lsSituacao; private MyComboboxEstandar cmbEmpresa; - private MyComboboxPuntoVenta cmbAgencia; private MyComboboxEstandar cmbSituacao; private Datebox datInicial; private Datebox datFinal; @@ -65,17 +65,18 @@ public class RelatorioVendasPTAController extends MyGenericForwardComposer { @Autowired private transient PagedListWrapper plwPuntoVenta; private ArrayList lsNumPuntoVenta = new ArrayList(); + private Radiogroup rgLayout; private Textbox txtPalavraPesquisa; @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); + lsEmpresa = empresaService.obtenerTodos(); - lsSituacao = Arrays.asList(SituacaoBoleto.values()); + cambiarTipoSituacao(); puntoVentaList.setItemRenderer(new RenderPuntoVentaSimple()); puntoVentaSelList.setItemRenderer(new RenderPuntoVentaSimple()); - } @SuppressWarnings({ "rawtypes", "unchecked" }) @@ -115,14 +116,16 @@ public class RelatorioVendasPTAController extends MyGenericForwardComposer { parametros.put("NOME_EMPRESA", empresa.getNombempresa()); parametros.put("TITULO", Labels.getLabel("relatorioVendasPTAController.window.title")); - - relatorio = new RelatorioVendasPTA(parametros, dataSourceRead.getConnection()); - + if (rgLayout.getSelectedItem().getValue().equals("LAYOUT_1")){ + relatorio = new RelatorioVendasPTA(parametros, dataSourceRead.getConnection()); + }else{ + relatorio = new RelatorioVendasInternetPTA(parametros, dataSourceRead.getConnection()); + } + Map args = new HashMap(); args.put("relatorio", relatorio); - openWindow("/component/reportView.zul", - Labels.getLabel("relatorioVendasPTAController.window.title"), args, MODAL); + openWindow("/component/reportView.zul", Labels.getLabel("relatorioVendasPTAController.window.title"), args, MODAL); } public void onSelect$puntoVentaList(Event ev) { @@ -172,6 +175,28 @@ public class RelatorioVendasPTAController extends MyGenericForwardComposer { puntoVentaSelList.addItemNovo(puntoVentaSel); } + + public void onCheck$rdExecutarRelatorio(Event ev) { + cambiarTipoSituacao(); + } + public void onCheck$rdInternetPta(Event ev) { + cambiarTipoSituacao(); + } + + private void cambiarTipoSituacao(){ + + if (rgLayout.getSelectedItem().getValue().equals("LAYOUT_1")) { + List lsSituacaoAux = new ArrayList(); + for (SituacaoBoleto situacao : SituacaoBoleto.values()) { + if (!(situacao.getCodigo() == 2 || situacao.getCodigo() == 3)) { + lsSituacaoAux.add(situacao); + } + } + cmbSituacao.setModel(new ListModelList(lsSituacaoAux)); + } else { + cmbSituacao.setModel(new ListModelList(Arrays.asList(SituacaoBoleto.values()))); + } + } public void onDoubleClick$puntoVentaSelList(Event ev) { @@ -192,14 +217,6 @@ public class RelatorioVendasPTAController extends MyGenericForwardComposer { this.lsEmpresa = lsEmpresa; } - public List getLsSituacao() { - return lsSituacao; - } - - public void setLsSituacao(List lsSituacao) { - this.lsSituacao = lsSituacao; - } - public MyListbox getPuntoVentaList() { return puntoVentaList; } diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index 56bbd5c96..3527e5321 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -760,8 +760,12 @@ relatorioVendasPTAController.window.title = Reporte de Ventas PTA relatorioVendasPTAController.lbDatInicial.value = Fecha inicial relatorioVendasPTAController.lbDatFinal.value = Fecha final relatorioVendasPTAController.lbEmpresa.value = Empresa -relatorioVendasPTAController.lbAgencia.value = Agencia +relatorioVendasPTAController.lbAgencia.value = Punto Venta relatorioVendasPTAController.lbSituacao.value = Situación +relatorioVendasPTAController.lbTipo.value = Tipo +relatorioVendasPTAController.lbInternetPTA.value = Internet x PTA +relatorioVendasPTAController.lbPTA.value = PTA + #Relatorio Segunda Via relatorioSegundaViaController.window.title=Relatório Segunda Via diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 3a1d757cf..6c1b16f23 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -829,6 +829,9 @@ relatorioVendasPTAController.lbDatInicial.value = Data Inicial relatorioVendasPTAController.lbDatFinal.value = Data Final relatorioVendasPTAController.lbEmpresa.value = Empresa relatorioVendasPTAController.lbAgencia.value = Agência +relatorioVendasPTAController.lbTipo.value = Tipo +relatorioVendasPTAController.lbInternetPTA.value = Internet x PTA +relatorioVendasPTAController.lbPTA.value = PTA #Relatorio Segunda Via relatorioSegundaViaController.window.title=Relatório Segunda Via diff --git a/web/gui/relatorios/filtroRelatorioVendasPTA.zul b/web/gui/relatorios/filtroRelatorioVendasPTA.zul index e6e1201b3..895ab5562 100644 --- a/web/gui/relatorios/filtroRelatorioVendasPTA.zul +++ b/web/gui/relatorios/filtroRelatorioVendasPTA.zul @@ -7,7 +7,7 @@ + height="250px" width="550px" border="normal"> @@ -29,8 +29,6 @@ - - - +