bug #6817
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@54787 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6b51a6d514
commit
2c2a4cebe5
|
@ -89,7 +89,7 @@
|
|||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zcommon.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zcommons-el.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zhtml.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zk.jar" sourcepath="C:/Users/leogmo/.m2/repository/org/zkoss/zk/zk/5.0.9/zk-5.0.9-sources.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zk.jar" sourcepath="C:/Users/rjgw/.m2/repository/org/zkoss/zk/zk/5.0.9/zk-5.0.9-sources.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zkplus.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zul.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zweb.jar"/>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
|
@ -534,11 +535,18 @@ public class FiscalHibernateDAO extends GenericHibernateDAO<String, String> impl
|
|||
return list;
|
||||
}
|
||||
|
||||
private boolean validaValorExiste(BigDecimal valor) {
|
||||
if (valor.equals(BigDecimal.ZERO) || valor == null)
|
||||
return Boolean.FALSE;
|
||||
else
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
private List<ItemFiscalVO> validaItensFiscais(ImportacionFiscalVO fiscal, String codProduto) {
|
||||
|
||||
boolean temTarifa = fiscal.getValorTarifa() != null ? true : false;
|
||||
boolean temPedagio = fiscal.getValorPedagio() != null ? true : false;
|
||||
boolean temEmbarque = fiscal.getValorEmbarque() != null ? true : false;
|
||||
boolean temTarifa = validaValorExiste(fiscal.getValorTarifa()) ? true : false;
|
||||
boolean temPedagio = validaValorExiste(fiscal.getValorPedagio()) ? true : false;
|
||||
boolean temEmbarque = validaValorExiste(fiscal.getValorEmbarque()) ? true : false;
|
||||
|
||||
boolean tarifaCriada = false;
|
||||
boolean pedagioCriada = false;
|
||||
|
|
Loading…
Reference in New Issue