Dbut ajout de la gestion des adresses de livraison

This commit is contained in:
Regis Houssin 2006-04-21 13:12:18 +00:00
parent 884367376e
commit 6ff8c7a9ac

View File

@ -256,6 +256,19 @@ class Livraison
$this->nom_societe = $obj->nom;
$this->socid = $obj->idp;
$this->id = $obj->idp;
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->lignes = array();