fixes bug#AL-3275

master
Julio Heredia 2023-10-20 16:15:13 -03:00
parent e430ead06d
commit 07beade7c0
2 changed files with 3 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.25.0</version> <version>1.25.1</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>

View File

@ -253,9 +253,9 @@ 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 (envioSefaz == FiltroEnviadosSefaz.NAO) {
sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is null "); sql.append(" and b.tipoventa_id not in (99) ");
} }
if (quebraSequencia){ if (quebraSequencia){
sql.append("union "); sql.append("union ");