From 7b61f28c596a4b075eb36c915c8df68fd8c5758b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Oct 2005 19:47:37 +0000 Subject: [PATCH] =?UTF-8?q?Affiche=20prix=20par=20quantit=E9=20+=20prix=20?= =?UTF-8?q?unitaire=20pour=20liste=20produits=20fournisseurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 74726d615dc..5405f9ee621 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -580,7 +580,7 @@ class Form { global $langs,$conf; - $sql = "SELECT p.rowid, p.label, p.ref, p.price, (pf.price / pf.quantity) as priceunit, p.duration"; + $sql = "SELECT p.rowid, p.label, p.ref, p.price, pf.quantity, p.duration"; $sql.= " FROM ".MAIN_DB_PREFIX."product as p "; $sql .= " , ".MAIN_DB_PREFIX."product_fournisseur_price as pf "; $sql.= " WHERE p.rowid = pf.fk_product AND pf.fk_soc = ".$socid; @@ -599,7 +599,13 @@ class Form while ($i < $num) { $objp = $this->db->fetch_object($result); - $opt = "\n"; print $opt;