From 5a6d89359d0a3f939bb0c04d4f977450879d2ebe Mon Sep 17 00:00:00 2001 From: walace Date: Tue, 26 Feb 2019 19:24:09 +0000 Subject: [PATCH] fixes bug#13278 qua:renato dev:leo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@90281 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/relatorios/impl/RelatorioGratuidade.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioGratuidade.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioGratuidade.java index 861c5ff08..93d1bd85d 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioGratuidade.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioGratuidade.java @@ -102,7 +102,7 @@ public class RelatorioGratuidade extends Relatorio { SimpleDateFormat hora = new SimpleDateFormat("HH:mm"); SimpleDateFormat data = new SimpleDateFormat("dd/MM/yyyy"); - + while (rset.next()) { RelatorioGratuidadeBean gratuidadeBean = new RelatorioGratuidadeBean(); @@ -293,7 +293,7 @@ public class RelatorioGratuidade extends Relatorio { sb.append(" when c.indstatusboleto = 'C' and c.motivocancelacion_id = 32 then 'DEVOLVIDO' "); sb.append(" when c.indstatusboleto = 'C' and c.motivocancelacion_id = 37 then 'CANCEC. EMERG' "); sb.append(" when c.indstatusboleto = 'E' and c.indreimpresion = 1 then 'ENTREGUE' "); - sb.append(" when (c.indstatusboleto = 'T' and c.motivocancelacion_id = 10 or c.tipoventa_id = 8) or (c.indstatusboleto = 'T' and c.tipoventa_id = 18) then 'TROCA' "); + sb.append(" when (c.indstatusboleto = 'T' and c.motivocancelacion_id = 10 or c.tipoventa_id = 8) or (c.indstatusboleto = 'T' and c.motivocancelacion_id is null) then 'TROCA' "); sb.append(" when c.indstatusboleto = 'T' and c.tipoventa_id = 81 or c.tipoventa_id = 81 then 'TRANSFERÊNCIA' " ); sb.append(" when c.indstatusboleto = 'T' and c.tipoventa_id = 82 then 'CONFIRM.ABERTO' " ); sb.append(" when c.indstatusboleto = 'C' and c.motivocancelacion_id = 10 then 'TROCA PASSAGEM' " );