fixes bug #9387
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@72625 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d41c4af725
commit
592b3d4656
|
@ -4002,7 +4002,7 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
sql.append(" and ((cajb.numasiento = caj.numasiento) or (cajb.numasiento is null and caj.numasiento is null)) ");
|
||||
sql.append(" and cajb.numfoliosistema = caj.numfoliosistema and cajb.origen_id = caj.origen_id and cajb.destino_id=caj.destino_id ");
|
||||
sql.append(" and ((cajb.tipoventa_id not in (5,12,18,81,41,49) ");
|
||||
sql.append(" and (cajb.indstatusboleto = 'v' or (cajb.indstatusboleto = 'T' and cajb.indreimpresion=0) )) ");
|
||||
sql.append(" and (cajb.indstatusboleto = 'V' or (cajb.indstatusboleto = 'T' and cajb.indreimpresion=0) )) ");
|
||||
sql.append(" or (cajb.tipoventa_id in (5,12,18,81,41,49) and cajb.indstatusboleto = 'E')) ) ");
|
||||
sql.append(" inner join fiscal_r4 r4 on r4.caja_id = cajb.caja_id ");
|
||||
sql.append(" join fiscal_r2 r2 on r4.numserie20 = r2.numserie20 and r4.datamov = r2.datamov ");
|
||||
|
@ -4076,7 +4076,7 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
sql.append(" and ((cajb.numasiento = caj.numasiento) or (cajb.numasiento is null and caj.numasiento is null)) ");
|
||||
sql.append(" and cajb.numfoliosistema = caj.numfoliosistema and cajb.origen_id = caj.origen_id and cajb.destino_id=caj.destino_id ");
|
||||
sql.append(" and ((cajb.tipoventa_id not in (5,12,18,81,41,49) ");
|
||||
sql.append(" and (cajb.indstatusboleto = 'v' or (cajb.indstatusboleto = 'T' and cajb.indreimpresion=0) )) ");
|
||||
sql.append(" and (cajb.indstatusboleto = 'V' or (cajb.indstatusboleto = 'T' and cajb.indreimpresion=0) )) ");
|
||||
sql.append(" or (cajb.tipoventa_id in (5,12,18,81,41,49) and cajb.indstatusboleto = 'E')) ) ");
|
||||
sql.append(" join marca m on caj.marca_id = m.marca_id ");
|
||||
sql.append(" join empresa e on e.empresa_id = m.empresa_id ");
|
||||
|
|
Loading…
Reference in New Issue