diff --git a/pom.xml b/pom.xml
index b4d10a960..b82d21f81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
br.com.rjconsultores
ventaboletosadm
- 1.25.2
+ 1.25.3
war
diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java
index 804b778ae..cd02ad0f7 100644
--- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java
+++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java
@@ -254,7 +254,7 @@ public class RelatorioVendaEmbarcada extends Relatorio {
}
if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) {
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) ");
}
if (quebraSequencia){
@@ -336,10 +336,10 @@ public class RelatorioVendaEmbarcada extends Relatorio {
sql.append(" and bp.codstat in (-1, 100, 102, 150) ");
}
if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) {
- sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is not null ");
- } else if (envioSefaz == FiltroEnviadosSefaz.NAO) {
- sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is null ");
- }
+ sql.append(" and b.tipoventa_id in (99) ");
+ } else if (vendaEmbarcada == FiltroEnviadosSefaz.NAO) {
+ sql.append(" and b.tipoventa_id not in (99) ");
+ }
sql.append(") ");
}
sql.append("order by ");