fixes bug#AL-4747

Relatorio considerando excluidos/inativos
master
Gleison da Cruz 2024-08-21 09:20:46 -03:00
parent bad152baa5
commit 898f8d1152
2 changed files with 5 additions and 3 deletions

View File

@ -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.127.1</version> <version>1.127.2</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>

View File

@ -144,6 +144,7 @@ public class RelatorioComissaoSintetico extends Relatorio {
if (!empresa.isEmpty()) { if (!empresa.isEmpty()) {
sql.append(" AND empresa_id = :EMPRESA_ID "); sql.append(" AND empresa_id = :EMPRESA_ID ");
} }
sql.append(" AND activo = 1 ");
sql.append(" AND tipooperacioncc_id = 5) cc on (cc.empresa_id = cm.empresa_id "); sql.append(" AND tipooperacioncc_id = 5) cc on (cc.empresa_id = cm.empresa_id ");
sql.append(" and cc.puntoventa_id = pv.puntoventa_id "); sql.append(" and cc.puntoventa_id = pv.puntoventa_id ");
sql.append(" and cc.fechoroperacion = cm.datamovimento "); sql.append(" and cc.fechoroperacion = cm.datamovimento ");
@ -156,6 +157,7 @@ public class RelatorioComissaoSintetico extends Relatorio {
if (!empresa.isEmpty()) { if (!empresa.isEmpty()) {
sql.append(" AND cm.empresa_id = :EMPRESA_ID "); sql.append(" AND cm.empresa_id = :EMPRESA_ID ");
} }
sql.append(" AND cm.activo = 1 ");
sql.append(" ORDER BY pv.nombpuntoventa, cm.datamovimento "); sql.append(" ORDER BY pv.nombpuntoventa, cm.datamovimento ");
return sql.toString(); return sql.toString();