fixes bug#AL-3907
parent
e2c42338ef
commit
0dd6abcfee
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.54.2</version>
|
<version>1.54.3</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -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 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 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 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(" join MARCA m on m.marca_id = ca.marca_id ");
|
||||||
sql.append("where ");
|
sql.append("where ");
|
||||||
sql.append(" ca.activo = 1 ");
|
sql.append(" ca.activo = 1 ");
|
||||||
|
@ -123,6 +123,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadora extends Relatorio {
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||||
stmt.setInt("EMPRESAAUTORIZADORA_ID",
|
stmt.setInt("EMPRESAAUTORIZADORA_ID",
|
||||||
Integer.valueOf(parametros.get("EMPRESAAUTORIZADORA_ID").toString()));
|
Integer.valueOf(parametros.get("EMPRESAAUTORIZADORA_ID").toString()));
|
||||||
|
|
||||||
return stmt;
|
return 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 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 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 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 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(" 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 ");
|
sql.append(" INNER JOIN empresa e on re.empresa_autorizadora_id=e.empresa_id ");
|
||||||
|
@ -222,6 +222,8 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
|
||||||
sql.append(" c.FECCORRIDA, ");
|
sql.append(" c.FECCORRIDA, ");
|
||||||
sql.append(" c.CORRIDA_ID ");
|
sql.append(" c.CORRIDA_ID ");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue