fixes bug#AL-1156
dev: aristides qua: Feito um ajuste na query da tarifa oficial. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@114003 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ba0661f98d
commit
e3e7a3fa18
|
@ -379,7 +379,7 @@ public class TarifaOficialHibernateDAO extends GenericHibernateDAO<TarifaOficial
|
|||
sql.append(" peaje_tarifas as ( ");
|
||||
sql.append(" select * from peaje p inner join tarifas_ofic tof on ");
|
||||
sql.append(" p.ORGAOCONCEDENTE_ID = tof.ORGAOCONCEDENTE_ID and p.ruta_id = tof.ruta_id ");
|
||||
sql.append(" and p.ORIGEN_ID = tof.ORIGEN_ID and p.DESTINO_ID = tof.DESTINO_ID and noar.MARCA = tof.MARCA_ID and p.activo = 1 ");
|
||||
sql.append(" and p.ORIGEN_ID = tof.ORIGEN_ID and p.DESTINO_ID = tof.DESTINO_ID and p.activo = 1 ");
|
||||
sql.append(" ) ");
|
||||
sql.append(" select pf.tarifaoficial_id , sum(round(importepeaje,2)) as soma from peaje_tarifas pf Group by pf.tarifaoficial_id ");
|
||||
sql.append(" ");
|
||||
|
|
Loading…
Reference in New Issue