From 59be536163e00fb72f70111bec11801079e2b146 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 28 Feb 2006 18:16:50 +0000 Subject: [PATCH] =?UTF-8?q?Ajout:=20r=E9cup=E9ration=20du=20libell=E9s=20d?= =?UTF-8?q?es=20conditions=20de=20r=E8glement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/propal.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index a67e6919468..60ef2c4425c 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -553,19 +553,19 @@ class Propal $this->user_author_id = $obj->fk_user_author; - if ($this->cond_reglement_id || $this->mode_reglement_id) + if ($this->cond_reglement_id) { - $sql = "SELECT cr.rowid, cr.libelle as cond_libelle, cr.code as cond_code, cp.rowid, cp.libelle as mode_libelle, cp.code as mode_code"; - $sql.= " FROM ".MAIN_DB_PREFIX."cond_reglement as cr, ".MAIN_DB_PREFIX."c_paiement as cp"; - $sql.= " WHERE cr.rowid = ".$this->cond_reglement_id." AND cp.rowid = ".$this->mode_reglement_id; + $sql = "SELECT rowid, libelle, code"; + $sql.= " FROM ".MAIN_DB_PREFIX."cond_reglement"; + $sql.= " WHERE rowid = ".$this->cond_reglement_id; $resqlcond = $this->db->query($sql); if ($resqlcond) { $objc = $this->db->fetch_object($resqlcond); - $this->cond_reglement = $objc->cond_libelle; - $this->mode_reglement = $objc->mode_libelle; + $this->cond_reglement = $objc->libelle; + $this->cond_reglement_code = $objc->code; } }