11743: Relatório - relatório remarcação/devolução

fixes bug#11743
dev:wilian
qua:bruno

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@85424 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2018-09-14 19:54:23 +00:00
parent 993a4bef4f
commit cfbcdc72d2
1 changed files with 1 additions and 3 deletions

View File

@ -104,10 +104,8 @@ public class RelatorioRemarcacaoDevolucao extends Relatorio {
sql.append("WHERE ");
sql.append(isRemarcacao ? "boleto.MOTIVOCANCELACION_ID = 23 " : "boleto.MOTIVOCANCELACION_ID = 32 ");
sql.append(isRemarcacao ? "AND boleto.INDSTATUSBOLETO = 'T' " : " ");
sql.append("AND boleto.INDSTATUSBOLETO = 'C' ");
sql.append("AND boleto.FECHORVENTA BETWEEN :data_inicial AND :data_final ");
sql.append("AND boleto.INDCANCELACION = 0 ");
sql.append("AND boleto.INDREIMPRESION = 0 ");
if (empresaId != null) {
sql.append("AND marca.EMPRESA_ID = ").append(empresaId);