fixes bug#AL-3149

Subtrair os cancelamentos e ordenar somente por nome / descrição do
ponto de vendas
master
Gleison da Cruz 2023-09-08 14:57:16 -03:00
parent 614def73d6
commit c1ae9652ba
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -123,6 +123,7 @@ public class RelatorioAgenciaFechamentoNovo extends Relatorio {
total = total.add(difMaior);
total = total.subtract(rset1.getBigDecimal("valorCancelado"));
total = total.subtract(rset1.getBigDecimal("valorEstornado"));
total = total.subtract(rset1.getBigDecimal("valorOCD"));
@ -299,7 +300,8 @@ public class RelatorioAgenciaFechamentoNovo extends Relatorio {
sql.append(" AND NVL(C.MONEDA_ID, 1) = :MOEDA_ID ");
sql.append(" GROUP BY pv.PUNTOVENTA_ID, pv.nombpuntoventa, o.boleto_id ");
sql.append(" ORDER BY pv.nombpuntoventa ");
sql.append(") GROUP BY codigo, descricao ");
sql.append(") GROUP BY codigo, descricao ");
sql.append(" ORDER BY descricao ");
return sql.toString();