diff --git a/pom.xml b/pom.xml
index e1d43ecda..0f974adbd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
br.com.rjconsultores
ventaboletosadm
- 1.0.67
+ 1.0.68
war
diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java
index c732414f9..3dc7fdaea 100644
--- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java
+++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java
@@ -76,7 +76,8 @@ public class RelatorioBPe extends Relatorio {
dataResult.put("valorseguro", rset.getBigDecimal("valorseguro"));
dataResult.put("valoroutros", rset.getBigDecimal("valoroutros"));
dataResult.put("errocontingencia", rset.getString("errocontingencia"));
-
+ dataResult.put("evento", rset.getString("evento"));
+
this.dados.add(dataResult);
}
@@ -105,7 +106,7 @@ public class RelatorioBPe extends Relatorio {
sql.append(" SELECT ");
sql.append(" dtvenda, hrvenda, locpuntoventa,numPuntoVenta, origem, destino, dtviagem, vlbpe, valortarifa, valortaxa, valorpedagio, ");
- sql.append(" valorseguro, valoroutros, chbpe, protocolo, num_bpe, numserie_bpe, status, obs, qrcode, errocontingencia ");
+ sql.append(" valorseguro, valoroutros, chbpe, protocolo, num_bpe, numserie_bpe, status, obs, qrcode, errocontingencia, evento ");
sql.append(" FROM ( ");
getSelectFrom(sql, alias);
@@ -218,8 +219,6 @@ public class RelatorioBPe extends Relatorio {
}
sql.append(" locpv.DESCPARADA as locpuntoventa, ");
sql.append(" pv.NUMPUNTOVENTA as numPuntoVenta, ");
-
-
sql.append(" TO_CHAR(bol.FECHORVIAJE,'dd/mm/yyyy HH24:MI') as dtviagem, ");
sql.append(" COALESCE(bol.PRECIOPAGADO,0) + coalesce(bol.IMPORTETAXAEMBARQUE,0) + coalesce(bol.IMPORTESEGURO,0) + coalesce(bol.IMPORTEPEDAGIO,0) + coalesce(bol.IMPORTEOUTROS,0) as vlbpe, ");
@@ -234,29 +233,31 @@ public class RelatorioBPe extends Relatorio {
sql.append(" bol.NUM_BPE as num_bpe, ");
sql.append(" COALESCE(bol.NUMSERIE_BPE, '1') as numserie_bpe, ");
- sql.append(" case bpe.codstat ");
-
- sql.append(" when '100' then ( ");
+ sql.append(" CASE bpe.tipoevento WHEN '110111' THEN 'Cancelado' ");
+ sql.append(" WHEN '110116' THEN 'Alteração de Poltrona' ");
+ sql.append(" WHEN '110115' THEN 'Não embarcado' ELSE '' END as evento, ");
+
+ sql.append(" case bpe.codstat when '100' then ( ");
sql.append(" case ");
sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 0 then 'Autorizado' ");
sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 1 then 'Aut.Conting.' ");
- sql.append(" when bpe.tiposubstituicao is not null then 'Autorizado/Substituição' ");
- sql.append(" when bpeSub.bpe_id is not null then 'Autorizado/Substituído' ");
+ sql.append(" when bpe.tiposubstituicao is not null then 'Autorizado/Substituição' ");
+ sql.append(" when bpeSub.bpe_id is not null then 'Autorizado/SubstituÃdo' ");
sql.append(" else 'Autorizado' ");
sql.append(" end ");
sql.append(" ) ");
sql.append(" when '102' then ( ");
sql.append(" case ");
- sql.append(" when bpe.tiposubstituicao is not null then 'Substituição' ");
- sql.append(" when bpeSub.bpe_id is not null then 'Substituído' ");
+ sql.append(" when bpe.tiposubstituicao is not null then 'Substituição' ");
+ sql.append(" when bpeSub.bpe_id is not null then 'SubstituÃdo' ");
sql.append(" end ");
sql.append(" ) ");
sql.append(" when '135' then ( ");
sql.append(" case bpe.tipoevento ");
sql.append(" when '110111' then 'Cancelado' ");
- sql.append(" when '110115' then 'Não embarcado' ");
+ sql.append(" when '110115' then 'Não embarcado' ");
sql.append(" else '' ");
sql.append(" end ");
sql.append(" ) ");
@@ -264,8 +265,8 @@ public class RelatorioBPe extends Relatorio {
sql.append(" when '150' then 'Aut.Conting.' ");
sql.append(" when '-1' then 'Pendente Envio' ");
sql.append(" when '-2' then 'Pendente Envio' ");
- sql.append(" when '-10' then 'Rejeitado Envio Contingência' ");
- sql.append(" when '-20' then 'Rejeitado Envio Contingência' ");
+ sql.append(" when '-10' then 'Rejeitado Envio Contingência' ");
+ sql.append(" when '-20' then 'Rejeitado Envio Contingência' ");
sql.append(" else 'Rejeitado' ");
sql.append(" end as status, ");
diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_es.properties
index 47009c601..b721b11ea 100644
--- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_es.properties
+++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_es.properties
@@ -28,4 +28,5 @@ label.numBPe=N
label.serie=Série
label.status=Status
label.obs=Observação
-label.erroEnvioContingencia=Erro Envio em Contingência
\ No newline at end of file
+label.erroEnvioContingencia=Erro Envio em Contingência
+label.evento=Tipo Evento
\ No newline at end of file
diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_pt_BR.properties
index 47009c601..b721b11ea 100644
--- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_pt_BR.properties
+++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeRejeitadoEnvioContingencia_pt_BR.properties
@@ -28,4 +28,5 @@ label.numBPe=N
label.serie=Série
label.status=Status
label.obs=Observação
-label.erroEnvioContingencia=Erro Envio em Contingência
\ No newline at end of file
+label.erroEnvioContingencia=Erro Envio em Contingência
+label.evento=Tipo Evento
\ No newline at end of file
diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jasper
index f63b9a6e4..9cef4cf4a 100644
Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jasper differ
diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jrxml
index 1784ff70d..035292a68 100644
--- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jrxml
+++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeRejeitadoEnvioContingencia.jrxml
@@ -1,5 +1,6 @@
-
+
+
@@ -7,6 +8,15 @@
+
+
+
+
+
+
+
+
+
@@ -23,10 +33,13 @@
+
+
+
-
+
@@ -34,7 +47,7 @@
-
+
@@ -42,7 +55,7 @@
-
+
@@ -50,7 +63,7 @@
-
+
@@ -58,7 +71,7 @@
-
+
@@ -66,73 +79,73 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -140,28 +153,28 @@
-
+
-
+
-
+
-
+
@@ -169,60 +182,67 @@
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -231,28 +251,28 @@
-
+
-
+
-
+
-
+
@@ -260,18 +280,25 @@
-
+
+
+
+
+
+
+
+
-
+