diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index bf07356d51e..9fd690fade5 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2058,7 +2058,38 @@ class Form } print ''; } - + + + + + /** + * \brief Selection des unites de poids + * \param name Nom champ html + * \param default Forçage de l'unite + * \remarks pour l'instant on ne definit pas les unites dans la base + */ + function select_weight_units($name='weight_units', $default='0', $adddefault=0) + { + global $langs,$conf,$mysoc; + + $units[3] = "Tonne"; + $units[0] = "kg"; + $units[-3] = "g"; + + print ''; + } function load_tva($name='tauxtva', $defaulttx='', $societe_vendeuse='', $societe_acheteuse='', $taux_produit='') {