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-87c2c4800839master
parent
85131afd42
commit
a269c5432a
|
@ -28,6 +28,7 @@ import javax.persistence.Table;
|
|||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
import org.apache.commons.lang.BooleanUtils;
|
||||
import org.hibernate.annotations.LazyCollection;
|
||||
import org.hibernate.annotations.LazyCollectionOption;
|
||||
|
||||
|
@ -916,7 +917,7 @@ public class PuntoVenta implements Serializable {
|
|||
}
|
||||
|
||||
public Boolean getIndIntegradoAG() {
|
||||
return indIntegradoAG;
|
||||
return BooleanUtils.isTrue(indIntegradoAG);
|
||||
}
|
||||
|
||||
public void setIndIntegradoAG(Boolean indIntegradoAG) {
|
||||
|
|
|
@ -172,7 +172,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
DaoAG.getInstance().setDBConnection(connection);
|
||||
|
||||
integrarClienteAG(entidad);
|
||||
if (entidad.getIndIntegradoAG() != null && !entidad.getIndIntegradoAG()){
|
||||
if (!entidad.getIndIntegradoAG()){
|
||||
motivoNaoIntegrado += "Cliente: " + entidad.getMotivoNaoIntegradoAG();
|
||||
}
|
||||
integrarFornecedorAG(entidad);
|
||||
|
|
Loading…
Reference in New Issue