bug#10328
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@79757 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
19cd08943c
commit
4622a7b543
|
@ -113,7 +113,8 @@ public class RelatorioHistoricoClientes extends Relatorio {
|
|||
sql.append("INNER JOIN CLIENTE cliente ON caja.CLIENTE_ID = cliente.CLIENTE_ID ");
|
||||
|
||||
sql.append("WHERE caja.MOTIVOCANCELACION_ID IS NULL ");
|
||||
sql.append("AND caja.INDREIMPRESION = 0 ");
|
||||
sql.append("AND (caja.INDSTATUSBOLETO in( 'V','T') and INDREIMPRESION = 0 and not exists(select * from caja c1 where c1.indstatusboleto = 'E' and caja.transacao_id = C1.TRANSACAOORIGINAL_ID ) or caja.INDSTATUSBOLETO = 'E' ) ");
|
||||
|
||||
if (empresaId != null) {
|
||||
sql.append("AND caja.EMPRESACORRIDA_ID = " + empresaId + " ");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue