diff --git a/htdocs/includes/modules/societe/modules_societe.class.php b/htdocs/includes/modules/societe/modules_societe.class.php index 74d7cb17560..ba6b86e431a 100644 --- a/htdocs/includes/modules/societe/modules_societe.class.php +++ b/htdocs/includes/modules/societe/modules_societe.class.php @@ -113,6 +113,26 @@ class ModeleThirdPartyCode return $liste; } + /** + * \brief Return description of module parameters + * \param langs Output language + * \param soc Third party object + * \param type -1=Nothing, 0=Customer, 1=Supplier + * \return string HTML translated description + */ + function getToolTip($langs,$soc,$type) + { + $s=''; + if ($type == 0) $s.=$langs->trans("CustomerCodeDesc").'
'; + if ($type == 1) $s.=$langs->trans("SupplierCodeDesc").'
'; + if ($type != -1) $s.=$langs->trans("ValidityControledByModule").': '.$this->getNom($langs).'
'; + if ($type == 0) $s.=$langs->trans("RequiredIfCustomer").': '.yn(!$this->code_null).'
'; + if ($type == 1) $s.=$langs->trans("RequiredIfSupplier").': '.yn(!$this->code_null).'
'; + $s.=$langs->trans("CanBeModifiedIfOk").': '.yn($this->code_modifiable).'
'; + $s.=$langs->trans("CanBeModifiedIfKo").': '.yn($this->code_modifiable_invalide).'
'; + if ($type != -1) $s.=$langs->trans("Example").': '.$this->getExample($langs,$soc,1).''; + return $s; + } }