mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-26 02:33:17 +01:00
rcupration de l'interlocuteur commerciale d'une commande
This commit is contained in:
@@ -699,6 +699,22 @@ class Commande
|
||||
$this->cond_reglement_code = $objc->code;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user