fixes bug#0012186

dev: thiago
qua: marcelo

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@85486 d1611594-4594-4d17-8e1d-87c2c4800839
master
emerson 2018-09-18 14:12:17 +00:00
parent 85131afd42
commit a269c5432a
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ import javax.persistence.Table;
import javax.persistence.Temporal; import javax.persistence.Temporal;
import javax.persistence.TemporalType; import javax.persistence.TemporalType;
import org.apache.commons.lang.BooleanUtils;
import org.hibernate.annotations.LazyCollection; import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption; import org.hibernate.annotations.LazyCollectionOption;
@ -916,7 +917,7 @@ public class PuntoVenta implements Serializable {
} }
public Boolean getIndIntegradoAG() { public Boolean getIndIntegradoAG() {
return indIntegradoAG; return BooleanUtils.isTrue(indIntegradoAG);
} }
public void setIndIntegradoAG(Boolean indIntegradoAG) { public void setIndIntegradoAG(Boolean indIntegradoAG) {

View File

@ -172,7 +172,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
DaoAG.getInstance().setDBConnection(connection); DaoAG.getInstance().setDBConnection(connection);
integrarClienteAG(entidad); integrarClienteAG(entidad);
if (entidad.getIndIntegradoAG() != null && !entidad.getIndIntegradoAG()){ if (!entidad.getIndIntegradoAG()){
motivoNaoIntegrado += "Cliente: " + entidad.getMotivoNaoIntegradoAG(); motivoNaoIntegrado += "Cliente: " + entidad.getMotivoNaoIntegradoAG();
} }
integrarFornecedorAG(entidad); integrarFornecedorAG(entidad);