From 39b908c5563590ff5c3138fc5af7d0abea08b097 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 30 Oct 2007 20:08:28 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Correction=20plus=20complete=20de=20la?= =?UTF-8?q?=20possibilit=E9=20de=20modifier=20le=20code=20client=20avec=20?= =?UTF-8?q?zebre.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/societe/modules_societe.class.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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; + } }