diff --git a/pom.xml b/pom.xml index 37a07862c..b37aded49 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 br.com.rjconsultores ventaboletosadm - 1.0.23 + 1.0.24 war diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java index 339481632..cb23ad08b 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPe.java @@ -212,11 +212,13 @@ public class RelatorioBPe extends Relatorio { if(alias != null && alias.equals("S")) {// ALIAS Origem/Destino dos bilhetes sql.append(" COALESCE(oriA.DESCPARADA, ori.DESCPARADA) as origem, "); sql.append(" COALESCE(destA.DESCPARADA, dest.DESCPARADA) as destino,"); + }else { + sql.append(" ori.DESCPARADA as origem, "); + sql.append(" dest.DESCPARADA as destino,"); } sql.append(" locpv.DESCPARADA as locpuntoventa, "); sql.append(" pv.NUMPUNTOVENTA as numPuntoVenta, "); - sql.append(" ori.DESCPARADA as origem, "); - sql.append(" dest.DESCPARADA as destino,"); + sql.append(" TO_CHAR(bol.FECHORVIAJE,'dd/mm/yyyy HH24:MI') as dtviagem, "); @@ -238,7 +240,7 @@ public class RelatorioBPe extends Relatorio { 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 bpe.tiposubstituicao is not null then 'Autorizado/Substituicâo' "); sql.append(" when bpeSub.bpe_id is not null then 'Autorizado/Substituído' "); sql.append(" else 'Autorizado' "); sql.append(" end ");