on rcupre le nom et prnom de l'auteur du bon de livraison

This commit is contained in:
Regis Houssin 2006-06-08 16:58:21 +00:00
parent 6fc2a6165e
commit e7c00047d1

View File

@ -229,6 +229,22 @@ class Livraison
$this->modelpdf = $obj->model_pdf;
$this->db->free();
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) $this->brouillon = 1;
$file = $conf->livraison->dir_output . "/" .get_exdir($livraison->id) . "/" . $this->id.".pdf";