diff --git a/htdocs/facturefourn.class.php b/htdocs/facturefourn.class.php index 3072c31b1a3..d1aa4fd6bf5 100644 --- a/htdocs/facturefourn.class.php +++ b/htdocs/facturefourn.class.php @@ -220,8 +220,8 @@ class FactureFourn { $sql = "SELECT fk_soc,libelle,facnumber,amount,remise,".$this->db->pdate(datef)."as df"; - $sql .= ", total_ht, total_tva, total_ttc"; - $sql .= " FROM llx_facture_fourn WHERE rowid=$rowid;"; + $sql .= ", total_ht, total_tva, total_ttc, fk_user_author"; + $sql .= " FROM llx_facture_fourn as f WHERE f.rowid=$rowid;"; if ($this->db->query($sql) ) { @@ -240,7 +240,9 @@ class FactureFourn $this->total_ht = $obj->total_ht; $this->total_tva = $obj->total_tva; $this->total_ttc = $obj->total_ttc; - + + $this->author = $obj->fk_user_author; + $this->db->free(); /*