fixes bug#23436
qua: dev: O bilhete é um checkin, e no banco de dados, ele fica como cancelado, porém não estava mapeado para ficar como desistencia. Foi mapeado. cateogoria_id = 27 como desistencia git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@109977 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
006c9860b5
commit
b51add784f
|
@ -212,7 +212,7 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
|
|||
sql.append("COALESCE(c.numtelefono, CAJA.DESCTELEFONO) AS tel,");
|
||||
sql.append("c.DESCCORREO AS email, ");
|
||||
sql.append("CASE ");
|
||||
sql.append("WHEN B.MOTIVOCANCELACION_ID IN (31, 32, 90, 23,10) ");
|
||||
sql.append("WHEN B.MOTIVOCANCELACION_ID IN (31, 32, 90, 23,10, 27) ");
|
||||
sql.append("THEN 1 ELSE 0 ");
|
||||
sql.append("END AS DESISTENCIA, ");
|
||||
sql.append(" (COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEPEDAGIO,0)) ");
|
||||
|
@ -303,7 +303,7 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
|
|||
sql.append(" COALESCE(c.numtelefono, CAJA.DESCTELEFONO) AS tel,");
|
||||
sql.append(" c.DESCCORREO AS email,");
|
||||
sql.append(" CASE");
|
||||
sql.append(" WHEN B.MOTIVOCANCELACION_ID IN (31,32, 90, 23,10 ) THEN 1 ELSE 0 END AS DESISTENCIA, ");
|
||||
sql.append(" WHEN B.MOTIVOCANCELACION_ID IN (31,32, 90, 23,10, 27 ) THEN 1 ELSE 0 END AS DESISTENCIA, ");
|
||||
sql.append(" (COALESCE(NULL, b.preciobase) + COALESCE(NULL, 0)) -(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO, 0)) AS vlrGratuidade,");
|
||||
sql.append(" bpe.chbpe AS chaveBPE ");
|
||||
sql.append("FROM BOLETO b ");
|
||||
|
@ -369,7 +369,7 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
|
|||
sql.append(" WHEN B.MOTIVOCANCELACION_ID IN (31,");
|
||||
sql.append(" 32,");
|
||||
sql.append(" 90,");
|
||||
sql.append(" 23,10) THEN 1");
|
||||
sql.append(" 23,10, 27) THEN 1");
|
||||
sql.append(" ELSE 0");
|
||||
sql.append(" END,");
|
||||
sql.append(" COALESCE(c.numtelefono, CAJA.DESCTELEFONO),");
|
||||
|
|
Loading…
Reference in New Issue