Modifie nom_url pour pointer sur la fiche prospect ou client
This commit is contained in:
parent
be0c4a8aa0
commit
057f52c15f
@ -195,7 +195,20 @@ class Societe {
|
||||
$this->client = $obj->client;
|
||||
$this->fournisseur = $obj->fournisseur;
|
||||
|
||||
$this->nom_url = '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$this->id.'">'.$obj->nom.'</a>';
|
||||
if ($this->client == 1)
|
||||
{
|
||||
|
||||
$this->nom_url = '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$this->id.'">'.$obj->nom.'</a>';
|
||||
}
|
||||
elseif($this->client == 2)
|
||||
{
|
||||
$this->nom_url = '<a href="'.DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$this->id.'">'.$obj->nom.'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->nom_url = '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$this->id.'">'.$obj->nom.'</a>';
|
||||
}
|
||||
|
||||
|
||||
$this->rubrique = $obj->rubrique;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user