fixes bug#AL-3907

master
Gleison da Cruz 2024-02-28 17:20:43 -03:00
parent e2c42338ef
commit 0dd6abcfee
3 changed files with 7 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.54.2</version>
<version>1.54.3</version>
<packaging>war</packaging>
<properties>

View File

@ -97,7 +97,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadora extends Relatorio {
sql.append(" inner join usuario us on us.usuario_id = ca.usuario_id ");
sql.append(" inner join punto_venta pv on pv.puntoventa_id = ca.puntoventa_id ");
sql.append(" INNER JOIN TIPO_PTOVTA tpv ON tpv.TIPOPTOVTA_ID = pv.TIPOPTOVTA_ID ");
sql.append(" INNER JOIN ruta_empresa re on re.ruta_id=ca.ruta_id ");
sql.append(" INNER JOIN ruta_empresa re on re.ruta_id=ca.ruta_id and re.activo = 1 ");
sql.append(" join MARCA m on m.marca_id = ca.marca_id ");
sql.append("where ");
sql.append(" ca.activo = 1 ");
@ -123,6 +123,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadora extends Relatorio {
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
stmt.setInt("EMPRESAAUTORIZADORA_ID",
Integer.valueOf(parametros.get("EMPRESAAUTORIZADORA_ID").toString()));
return stmt;
}
});

View File

@ -33,7 +33,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
StringBuilder sql = new StringBuilder();
getSQL(parametros, sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
setarParmetrosObrigatorios(parametros, stmt);
@ -162,7 +162,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
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(" join MARCA m on m.marca_id = c.marca_id ");
sql.append(" join RUTA_EMPRESA re on re.ruta_id = c.ruta_id ");
sql.append(" join RUTA_EMPRESA re on re.ruta_id = c.ruta_id and re.activo = 1 ");
sql.append(" join CAJA_FORMAPAGO cf on cf.caja_id=c.caja_id ");
sql.append(" join FORMA_PAGO fp on fp.formapago_id=cf.formapago_id ");
sql.append(" INNER JOIN empresa e on re.empresa_autorizadora_id=e.empresa_id ");
@ -221,6 +221,8 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
sql.append(" ct.DESCCATEGORIA, ");
sql.append(" c.FECCORRIDA, ");
sql.append(" c.CORRIDA_ID ");
}
});