From 122b0e2524048f85322f8735a592ea2872cb7b73 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 27 Dec 2007 11:09:48 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20on=20r=E9cup=E8re=20le=20champ=20libelle?= =?UTF-8?q?=5Ffacture=20des=20conditions=20de=20r=E9glement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/propal.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index a32358bc823..a1747d821e8 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -878,7 +878,7 @@ class Propal extends CommonObject if ($this->cond_reglement_id) { - $sql = "SELECT rowid, libelle, code"; + $sql = "SELECT rowid, libelle, code, libelle_facture"; $sql.= " FROM ".MAIN_DB_PREFIX."cond_reglement"; $sql.= " WHERE rowid = ".$this->cond_reglement_id; @@ -887,8 +887,9 @@ class Propal extends CommonObject if ($resqlcond) { $objc = $this->db->fetch_object($resqlcond); - $this->cond_reglement = $objc->libelle; - $this->cond_reglement_code = $objc->code; + $this->cond_reglement = $objc->libelle; + $this->cond_reglement_document = $objc->libelle_facture; + $this->cond_reglement_code = $objc->code; } }