récupération de l'interlocuteur commerciale d'une commande

This commit is contained in:
Regis Houssin 2006-05-09 19:04:01 +00:00
parent b287c2f82a
commit f1d483e58e

View File

@ -700,6 +700,22 @@ class Commande
} }
} }
if ($this->user_author_id)
{
$sql = "SELECT name, firstname";
$sql.= " FROM ".MAIN_DB_PREFIX."user";
$sql.= " WHERE rowid = ".$this->user_author_id;
$resqluser = $this->db->query($sql);
if ($resqluser)
{
$obju = $this->db->fetch_object($resqluser);
$this->user_author_name = $obju->name;
$this->user_author_firstname = $obju->firstname;
}
}
if ($this->statut == 0) if ($this->statut == 0)
$this->brouillon = 1; $this->brouillon = 1;
// exp pdf ----------- // exp pdf -----------