From 973c5e3d5a076cf516e7e72f35d053ba4aa82db3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 5 Oct 2006 08:13:00 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20le=20libell=E9=20produit=20n'=E9tait=20p?= =?UTF-8?q?lus=20r=E9cup=E9r=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 0d4a5b7052d..3aa90758f50 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -973,7 +973,7 @@ class Commande extends CommonObject $this->lignes = array(); $sql = 'SELECT l.rowid, l.fk_product, l.fk_commande, l.description, l.price, l.qty, l.tva_tx,'; $sql.= ' l.remise_percent, l.subprice, l.coef, l.rang, l.info_bits, '; - $sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type'; + $sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label'; $sql.= ' FROM '.MAIN_DB_PREFIX.'commandedet as l'; $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON (p.rowid = l.fk_product)'; $sql.= ' WHERE l.fk_commande = '.$this->id; @@ -1005,7 +1005,8 @@ class Commande extends CommonObject $ligne->rang = $objp->rang; $ligne->info_bits = $objp->info_bits; - $ligne->ref = $objp->product_ref; + $ligne->ref = $objp->product_ref; + $ligne->libelle = $objp->label; $ligne->product_desc = $objp->product_desc; // Description produit $ligne->fk_product_type= $objp->fk_product_type; // Produit ou service