From 18b84d722ea059338cf7726f7b1a96ce501aa1cf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Jan 2004 19:22:41 +0000 Subject: [PATCH] =?UTF-8?q?L'id=20de=20l'auteur=20de=20la=20facture=20fk?= =?UTF-8?q?=5Fuser=5Fauthor=20n'=E9tait=20pas=20r=E9cup=E9r=E9=20dans=20l'?= =?UTF-8?q?objet=20facture.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/facturefourn.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); /*