fixes bug#24053

dev: JULIO
qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@111027 d1611594-4594-4d17-8e1d-87c2c4800839
master
celio 2022-02-24 22:18:08 +00:00
parent 1cac4221b7
commit 175d21a357
3 changed files with 6 additions and 4 deletions

View File

@ -19,7 +19,7 @@
<![CDATA[select cj.numseriepreimpresa, nvl(cj.empresacorrida_id, ma.marca_id) empresacorrida_id, <![CDATA[select cj.numseriepreimpresa, nvl(cj.empresacorrida_id, ma.marca_id) empresacorrida_id,
em.nombempresa, es.cveestado, cj.numfoliosistema, cj.fechorventa, cj.feccorrida, em.nombempresa, es.cveestado, cj.numfoliosistema, cj.fechorventa, cj.feccorrida,
cj.preciopagado cj.preciopagado
from caja cj, from boleto cj,
empresa em, empresa em,
punto_venta pv, punto_venta pv,
parada pa, parada pa,
@ -34,9 +34,11 @@
and pa.ciudad_id = ci.ciudad_id and pa.ciudad_id = ci.ciudad_id
and ci.estado_id = es.estado_id and ci.estado_id = es.estado_id
and nvl(cj.empresacorrida_id, ma.empresa_id) = $P{EMPRESA_ID} and nvl(cj.empresacorrida_id, ma.empresa_id) = $P{EMPRESA_ID}
and cj.indcancelacion = 0
and cj.motivocancelacion_id is null
$P!{LS_CATEGORIA} $P!{LS_CATEGORIA}
and trunc(cj.fechorventa) between trunc($P{DATA_INICIO}) and trunc($P{DATA_FINAL}) and trunc(cj.fechorventa) between trunc($P{DATA_INICIO}) and trunc($P{DATA_FINAL})
and ((cj.feccorrida is null) or ($P{PASSAGEM_ABERTA} = 'T')) $P!{PASSAGEM_ABERTA}
order by em.nombempresa, es.cveestado, cj.fechorventa]]> order by em.nombempresa, es.cveestado, cj.fechorventa]]>
</queryString> </queryString>
<field name="NUMSERIEPREIMPRESA" class="java.lang.String"/> <field name="NUMSERIEPREIMPRESA" class="java.lang.String"/>

View File

@ -214,9 +214,9 @@ public class RelatorioPassageirosViajarController extends MyGenericForwardCompos
parametros.put("DATA_INICIO", datInicial.getValue()); parametros.put("DATA_INICIO", datInicial.getValue());
parametros.put("DATA_FINAL", datFinal.getValue()); parametros.put("DATA_FINAL", datFinal.getValue());
String passagemAberta = ""; String passagemAberta = " and (cj.feccorrida is null and cj.corrida_id is null) ";
if (!chkPassageiroAberto.isChecked()) { if (!chkPassageiroAberto.isChecked()) {
passagemAberta = "T"; passagemAberta = " and (cj.feccorrida is not null and cj.corrida_id not is null) ";
} }
parametros.put("PASSAGEM_ABERTA", passagemAberta); parametros.put("PASSAGEM_ABERTA", passagemAberta);
Empresa e = (Empresa) cmbEmpresa.getSelectedItem().getValue(); Empresa e = (Empresa) cmbEmpresa.getSelectedItem().getValue();