From e3a82fae842b6de82ead4cf4f74d7e952bb22b2a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 17 Sep 2003 17:08:13 +0000 Subject: [PATCH] Modif des lignes, par defaut on ne gere que le libelle du produit et pas encore la description --- htdocs/propal.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 4ac1b0c4a6d..2a0ba170998 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -328,7 +328,7 @@ class Propal * Lignes */ - $sql = "SELECT d.qty, p.description, p.ref, p.price, d.tva_tx, p.rowid"; + $sql = "SELECT d.qty, p.description, p.ref, p.price, d.tva_tx, p.rowid, p.label"; $sql .= " FROM llx_propaldet as d, llx_product as p"; $sql .= " WHERE d.fk_propal = ".$this->id ." AND d.fk_product = p.rowid"; @@ -342,6 +342,7 @@ class Propal { $objp = $this->db->fetch_object($i); $ligne = new PropaleLigne(); + $ligne->libelle = stripslashes($objp->label); $ligne->desc = stripslashes($objp->description); $ligne->qty = $objp->qty; $ligne->ref = $objp->ref;