frederico 2018-01-08 17:52:06 +00:00
parent 6605dd1eb4
commit 969ef32c47
1 changed files with 1 additions and 0 deletions

View File

@ -256,6 +256,7 @@ public class RelatorioVendasPTA extends Relatorio {
sql.append("WHERE to_date(original.FECHORVENTA,'dd/MM/yy') BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
sql.append(" AND ORIGINAL.INDSTATUSBOLETO IN('C') ");
sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49,81) ");
sql.append(" AND ORIGINAL.EMPRESACORRIDA_ID =" + empresa.getEmpresaId() + " " );
sql.append(agencia.equals("-1") || agencia.equals("TODAS") ? "" : " AND (utilizado.PUNTOVENTA_ID in (" + agencia + ")) AND ORIGINAL.MOTIVOCANCELACION_ID IN ("+motivoCancelacion+") ");
}