diff --git a/htdocs/includes/modules/societe/mod_codeclient_tigre.php b/htdocs/includes/modules/societe/mod_codeclient_tigre.php
index b59f44a451b..b90e9045223 100644
--- a/htdocs/includes/modules/societe/mod_codeclient_tigre.php
+++ b/htdocs/includes/modules/societe/mod_codeclient_tigre.php
@@ -17,15 +17,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/
- *
- * $Id$
*/
/**
\file htdocs/includes/modules/societe/mod_codeclient_tigre.class.php
\ingroup societe
\brief Fichier de la classe des gestion tigre des codes clients
- \version $Revision$
+ \version $Id$
*/
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
diff --git a/htdocs/includes/modules/societe/modules_societe.class.php b/htdocs/includes/modules/societe/modules_societe.class.php
index 82798d7441b..bb64f2334fc 100644
--- a/htdocs/includes/modules/societe/modules_societe.class.php
+++ b/htdocs/includes/modules/societe/modules_societe.class.php
@@ -18,15 +18,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/
- *
- * $Id$
*/
/**
\file htdocs/includes/modules/societe/modules_societe.class.php
\ingroup societe
\brief Fichier contenant la classe mère de module de generation societes
- \version $Revision$
+ \version $Id$
*/
@@ -84,7 +82,21 @@ class ModeleThirdPartyCode
}
- /**
+ /** \brief Renvoi version du module numerotation
+ * \return string Valeur
+ */
+ function getVersion()
+ {
+ global $langs;
+ $langs->load("admin");
+
+ if ($this->version == 'development') return $langs->trans("VersionDevelopment");
+ if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
+ if ($this->version == 'dolibarr') return DOL_VERSION;
+ return $langs->trans("NotAvailable");
+ }
+
+ /**
* \brief Renvoi la liste des modèles actifs
* \param db Handler de base
*/
@@ -122,6 +134,7 @@ class ModeleThirdPartyCode
function getToolTip($langs,$soc,$type)
{
$s='';
+ $s.=$langs->trans("Version").': '.$this->getVersion().'
';
if ($type == 0) $s.=$langs->trans("CustomerCodeDesc").'
';
if ($type == 1) $s.=$langs->trans("SupplierCodeDesc").'
';
if ($type != -1) $s.=$langs->trans("ValidityControledByModule").': '.$this->getNom($langs).'
';