10977: Ajustar layout planalto

bug#10977
dev:daniel
qua:renato

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@81488 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2018-04-30 20:32:28 +00:00
parent b6d5610079
commit 08a9e68a8f
1 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ public class RelatorioAgenciaFechamentoResumoDiario extends Relatorio {
BigDecimal total = BigDecimal.ZERO; BigDecimal total = BigDecimal.ZERO;
BigDecimal vendido = BigDecimal.ZERO; BigDecimal vendido = BigDecimal.ZERO;
String puntoVentaId = rset1.getString("codigo"); String puntoVentaId = rset1.getString("puntoventaId");
Integer qtdevendido = rset1.getInt("qtdevendido"); Integer qtdevendido = rset1.getInt("qtdevendido");
Integer qtdedigitado = rset1.getInt("qtdedigitado"); Integer qtdedigitado = rset1.getInt("qtdedigitado");
@ -187,8 +187,8 @@ public class RelatorioAgenciaFechamentoResumoDiario extends Relatorio {
sql.append(" "); sql.append(" ");
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID <> 31 THEN ( "); sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID <> 31 THEN ( ");
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) "); sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido "); sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido, ");
sql.append(" "); sql.append(" pv.PUNTOVENTA_ID AS puntoventaId ");
sql.append(" "); sql.append(" ");
sql.append(" FROM CAJA c "); sql.append(" FROM CAJA c ");
sql.append(" INNER JOIN PUNTO_VENTA pv ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID "); sql.append(" INNER JOIN PUNTO_VENTA pv ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
@ -203,7 +203,7 @@ public class RelatorioAgenciaFechamentoResumoDiario extends Relatorio {
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) { if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
sql.append(" AND m.empresa_id = "+empresa+" "); sql.append(" AND m.empresa_id = "+empresa+" ");
} }
sql.append(" GROUP BY pv.NUMPUNTOVENTA , pv.nombpuntoventa "); sql.append(" GROUP BY pv.NUMPUNTOVENTA , pv.nombpuntoventa, pv.puntoventa_id ");
sql.append(" ORDER BY pv.NUMPUNTOVENTA , pv.nombpuntoventa "); sql.append(" ORDER BY pv.NUMPUNTOVENTA , pv.nombpuntoventa ");
return sql.toString(); return sql.toString();