From 16811c9cdbdcd338846e6243559150b38dde4c4e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Dec 2006 10:58:33 +0000 Subject: [PATCH] =?UTF-8?q?mise=20en=20fonction=20de=20la=20s=E9lection=20?= =?UTF-8?q?du=20HT=20et=20du=20TTC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 28 ++++++++++++++++++++++++++++ htdocs/product/price.php | 5 +++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 348d5ce05fc..6b66d49ea01 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1110,6 +1110,34 @@ class Form print ''; } + /** + * \brief Selection HT ou TTC + * \param selected Id présélectionné + * \param htmlname Nom de la zone select + */ + function select_PriceBaseType($selected='',$htmlname='price_base_type') + { + global $langs; + print ''; + } + /** * \brief Retourne la liste des modes de paiements possibles * \param selected Id du mode de paiement présélectionné diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 9c7ad57b12b..7cdb5f01f8d 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -45,6 +45,8 @@ accessforbidden(); $types[0] = $langs->trans("Product"); $types[1] = $langs->trans("Service"); +$html = new Form($db); + /* * Actions */ @@ -193,13 +195,12 @@ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) if ($product->price_base_type == 'TTC') { print ''; - print ''; } else { print ''; - print ''; } + print $html->select_PriceBaseType($product->price_base_type, "price_base_type"); print ''; } print ' ';