diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java index 8d2aa6780..7a0b95298 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendaEmbarcada.java @@ -156,7 +156,7 @@ public class RelatorioVendaEmbarcada extends Relatorio { Integer codstat = rset.getInt("statussefaz"); if (codstat == -1){ dataResult.put("statussefaz", "Pendente"); - } else if (codstat == 100){ + } else if (codstat == 100 || codstat == 102 ){ dataResult.put("statussefaz", "Enviado"); } else if (codstat == 150){ dataResult.put("statussefaz", "Enviado em contingência"); @@ -246,11 +246,11 @@ public class RelatorioVendaEmbarcada extends Relatorio { sql.append(" and (disp.ind_disp_bloqueado = 0 or disp.ind_disp_bloqueado is null) "); } if (envioSefaz == FiltroEnviadosSefaz.SIM) { - sql.append(" and bp.codstat in (100, 150) "); + sql.append(" and bp.codstat in (100, 102, 150) "); } else if (envioSefaz == FiltroEnviadosSefaz.NAO) { sql.append(" and bp.codstat = -1 "); } else { - sql.append(" and bp.codstat in (-1, 100,150) "); + sql.append(" and bp.codstat in (-1, 100, 102, 150) "); } if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) { sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is not null "); @@ -329,11 +329,11 @@ public class RelatorioVendaEmbarcada extends Relatorio { sql.append(" and (disp.ind_disp_bloqueado = 0 or disp.ind_disp_bloqueado is null) "); } if (envioSefaz == FiltroEnviadosSefaz.SIM) { - sql.append(" and bp.codstat in (100, 150) "); + sql.append(" and bp.codstat in (100, 102, 150) "); } else if (envioSefaz == FiltroEnviadosSefaz.NAO) { sql.append(" and bp.codstat = -1 "); } else { - sql.append(" and bp.codstat in (-1, 100,150) "); + sql.append(" and bp.codstat in (-1, 100, 102, 150) "); } if (vendaEmbarcada == FiltroEnviadosSefaz.SIM) { sql.append(" and b.IMEI_DISPOSITIVO_EMBARCADA is not null ");