fixes bug#AL-3275

master
Julio Heredia 2023-10-23 11:33:04 -03:00
parent cc313ad2d3
commit 377a6570c0
2 changed files with 6 additions and 6 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.25.2</version> <version>1.25.3</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>

View File

@ -254,7 +254,7 @@ public class RelatorioVendaEmbarcada extends Relatorio {
} }
if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) { if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) {
sql.append(" and b.tipoventa_id in (99) "); sql.append(" and b.tipoventa_id in (99) ");
} else if (envioSefaz == FiltroEnviadosSefaz.NAO) { } else if (vendaEmbarcada == FiltroEnviadosSefaz.NAO) {
sql.append(" and b.tipoventa_id not in (99) "); sql.append(" and b.tipoventa_id not in (99) ");
} }
if (quebraSequencia){ if (quebraSequencia){
@ -336,10 +336,10 @@ public class RelatorioVendaEmbarcada extends Relatorio {
sql.append(" and bp.codstat in (-1, 100, 102, 150) "); sql.append(" and bp.codstat in (-1, 100, 102, 150) ");
} }
if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) { if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) {
sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is not null "); sql.append(" and b.tipoventa_id in (99) ");
} else if (envioSefaz == FiltroEnviadosSefaz.NAO) { } else if (vendaEmbarcada == FiltroEnviadosSefaz.NAO) {
sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is null "); sql.append(" and b.tipoventa_id not in (99) ");
} }
sql.append(") "); sql.append(") ");
} }
sql.append("order by "); sql.append("order by ");