diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/CajaHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/CajaHibernateDAO.java index 29b7efcaf..f7b3ad53a 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/CajaHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/CajaHibernateDAO.java @@ -11,6 +11,7 @@ import org.hibernate.type.DateType; import org.hibernate.type.IntegerType; import org.hibernate.type.LongType; import org.hibernate.type.StringType; +import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Repository; @@ -24,6 +25,7 @@ import com.rjconsultores.ventaboletos.vo.caja.UsuarioVO; @Repository("cajaDAO") public class CajaHibernateDAO extends GenericHibernateDAO implements CajaDAO { + private static Logger log = org.slf4j.LoggerFactory.getLogger(CajaHibernateDAO.class); @Autowired private SQLBuilder sqlBuilder; @@ -137,6 +139,8 @@ public class CajaHibernateDAO extends GenericHibernateDAO implemen } return usuarios; } catch (Exception e){ + log.error("",e); + return null; } } diff --git a/src/com/rjconsultores/ventaboletos/dao/sqlbuilder/impl/SQLBuilderOracle.java b/src/com/rjconsultores/ventaboletos/dao/sqlbuilder/impl/SQLBuilderOracle.java index 74d7d3077..7fdc687bf 100644 --- a/src/com/rjconsultores/ventaboletos/dao/sqlbuilder/impl/SQLBuilderOracle.java +++ b/src/com/rjconsultores/ventaboletos/dao/sqlbuilder/impl/SQLBuilderOracle.java @@ -653,7 +653,7 @@ public class SQLBuilderOracle implements SQLBuilder { sb.append(" c.CORRIDA_ID as \"corridaId\", "); sb.append(" (case when c.motivocancelacion_id is null then cfp.importe else cfp.importe * -1 end) as \"precioPagado\", "); sb.append(" c.FECHORVENTA as \"fecHorVenta\", "); - sb.append(" c.IMPORTETAXAEMBARQUE as \"importeTaxaEmbarque\", "); + sb.append(" (case when c.motivocancelacion_id is null then c.IMPORTETAXAEMBARQUE else c.IMPORTETAXAEMBARQUE * -1 end) as \"importeTaxaEmbarque\", "); sb.append(" ru.descruta as \"ruta\", "); sb.append(" ct.numautorizacion as \"numAutorizacion\", "); sb.append(" (case when cfp.formapago_id = 11 then cdp.numdocumento else null end) as \"ordenSevicio\", ");