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 ' ';