diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 15646307c91..52933d97d7b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3098,12 +3098,14 @@ class Form // Disabled if customer is not subject to VAT $disabled=false; + $title=''; if (is_object($societe_acheteuse) && ! empty($societe_acheteuse->id) - && $societe_acheteuse->tva_assuj == "0") { + && $societe_acheteuse->tva_assuj == "0") { + $title=' title="'.$langs->trans('VATIsNotUsed').'"'; $disabled=true; } - if (! $options_only) $return.= ''; foreach ($this->cache_vatrates as $rate) {