fixes bug#24157

dev: JULIO
qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@111109 d1611594-4594-4d17-8e1d-87c2c4800839
master
celio 2022-03-04 12:43:35 +00:00
parent e8131291e9
commit f477a7e72a
1 changed files with 8 additions and 3 deletions

View File

@ -101,7 +101,7 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryBilhetesVenda(puntoVenta, empresa));
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss") , sdf2 = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
ResultSet rset1 = criaResultSet(fecInicio, fecFinal, sdf, stmt);
@ -121,7 +121,10 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
Integer qtdedigitado = rset1.getInt("qtdedigitado");
Integer qtdeAnulado = rset1.getInt("qtdeAnulado");
Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido");
String dataInicial = rset1.getString("DATA");
String dataFinal = rset1.getString("DATA");
vendido = rset1.getBigDecimal("vendido");
BigDecimal digitado = rset1.getBigDecimal("digitado");
BigDecimal anulado = rset1.getBigDecimal("anulado");
@ -129,7 +132,7 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
total = preencherAgenciaFechamento(empresaNome, rset1, agenciaFechamento, total, vendido, qtdevendido, qtdedigitado, qtdeAnulado, qtdeDevolvido, digitado, anulado, devolvido);
carregarDadosReceitaDespesa(fecInicio, fecFinal, empresa, sdf, agenciaFechamento, total, vendido, puntoVentaId);
carregarDadosReceitaDespesa(dataInicial, dataFinal, empresa, sdf2, agenciaFechamento, total, vendido, puntoVentaId);
lsDadosRelatorio.add(agenciaFechamento);
}
@ -158,6 +161,8 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
protected void carregarDadosReceitaDespesa(String fecInicio, String fecFinal, String empresa, SimpleDateFormat sdf, RelatorioAgenciaFechamentoAntigoBean agenciaFechamento, BigDecimal total, BigDecimal vendido, String puntoVentaId) throws SQLException, ParseException {
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryReceitaDespesa(puntoVentaId, empresa));
fecInicio = fecInicio.substring(0, 10).toString() + " 00:00:00";
fecFinal = fecFinal.substring(0, 10).toString() + " 23:59:59";
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));