From 88bddbc182dd5cf40b8ce7cb07997fda8a0618e7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 7 Feb 2004 19:37:51 +0000 Subject: [PATCH] Ajout valeurs dans fetch() --- htdocs/facturefourn.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/facturefourn.class.php b/htdocs/facturefourn.class.php index eef29b13dac..e7c89d5aec7 100644 --- a/htdocs/facturefourn.class.php +++ b/htdocs/facturefourn.class.php @@ -222,6 +222,7 @@ class FactureFourn $sql = "SELECT fk_soc,libelle,facnumber,amount,remise,".$this->db->pdate(datef)."as df"; $sql .= ", total_ht, total_tva, total_ttc, fk_user_author"; + $sql .= ", fk_statut, paye"; $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as f WHERE f.rowid=$rowid;"; if ($this->db->query($sql) ) @@ -242,7 +243,10 @@ class FactureFourn $this->total_tva = $obj->total_tva; $this->total_ttc = $obj->total_ttc; - $this->author = $obj->fk_user_author; + $this->author = $obj->fk_user_author; + + $this->statut = $obj->fk_statut; + $this->paye = $obj->paye; $this->db->free();