From 0089f771ca9e8e154b908a3f4f1d52e2f816f793 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 28 Oct 2003 16:18:23 +0000 Subject: [PATCH] Ajout le libelle dans la fonction fetch() --- htdocs/facturefourn.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/facturefourn.class.php b/htdocs/facturefourn.class.php index ce64b8821b5..3072c31b1a3 100644 --- a/htdocs/facturefourn.class.php +++ b/htdocs/facturefourn.class.php @@ -219,7 +219,7 @@ class FactureFourn Function fetch($rowid) { - $sql = "SELECT fk_soc,facnumber,amount,remise,".$this->db->pdate(datef)."as df"; + $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;"; @@ -229,9 +229,10 @@ class FactureFourn { $obj = $this->db->fetch_object(0); - $this->id = $rowid; - $this->datep = $obj->dp; - $this->ref = $obj->facnumber; + $this->id = $rowid; + $this->datep = $obj->dp; + $this->ref = $obj->facnumber; + $this->libelle = $obj->libelle; $this->remise = $obj->remise; $this->socidp = $obj->fk_soc;