fixed bug #7866: Corrigido para que o relatório não conte passagens canceladas.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@60870 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4046d26470
commit
b22f2fa2e0
|
@ -39,8 +39,7 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
|
|||
sql.append(" min(c.numfoliopreimpreso) as minfisico, ");
|
||||
sql.append(" max(c.numfoliopreimpreso) as maxfisico, ");
|
||||
sql.append(" (max(c.numfoliopreimpreso) + 1) - min(c.numfoliopreimpreso) as dif1, ");
|
||||
sql.append(
|
||||
" count(case when (c.indreimpresion = 1 and c.indstatusboleto = 'E') then -1 else 1 end) as total ");
|
||||
sql.append(" count(case when (c.indreimpresion = 1 and c.indstatusboleto = 'E') then -1 else 1 end) as total ");
|
||||
sql.append("from ");
|
||||
sql.append(" caja c ");
|
||||
sql.append(" inner join estacion e on e.estacion_id = c.estacion_id ");
|
||||
|
@ -55,6 +54,7 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
|
|||
sql.append(" and c.puntoventa_id = " + puntoventaId);
|
||||
}
|
||||
sql.append(" and c.activo <> 0 ");
|
||||
sql.append(" and c.motivocancelacion_id is null ");
|
||||
sql.append(" and c.numfoliopreimpreso is not null ");
|
||||
sql.append(" and c.numfoliosistema is not null ");
|
||||
sql.append("group by ");
|
||||
|
|
Loading…
Reference in New Issue