Fix: Version of company numbering module not shown.
This commit is contained in:
parent
592cd2e8fa
commit
f48f2b2df8
@ -17,15 +17,13 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
* or see http://www.gnu.org/
|
* or see http://www.gnu.org/
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/societe/mod_codeclient_tigre.class.php
|
\file htdocs/includes/modules/societe/mod_codeclient_tigre.class.php
|
||||||
\ingroup societe
|
\ingroup societe
|
||||||
\brief Fichier de la classe des gestion tigre des codes clients
|
\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");
|
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
||||||
|
|||||||
@ -18,15 +18,13 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
* or see http://www.gnu.org/
|
* or see http://www.gnu.org/
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/societe/modules_societe.class.php
|
\file htdocs/includes/modules/societe/modules_societe.class.php
|
||||||
\ingroup societe
|
\ingroup societe
|
||||||
\brief Fichier contenant la classe mère de module de generation societes
|
\brief Fichier contenant la classe mère de module de generation societes
|
||||||
\version $Revision$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +82,20 @@ 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
|
* \brief Renvoi la liste des modèles actifs
|
||||||
* \param db Handler de base
|
* \param db Handler de base
|
||||||
@ -122,6 +134,7 @@ class ModeleThirdPartyCode
|
|||||||
function getToolTip($langs,$soc,$type)
|
function getToolTip($langs,$soc,$type)
|
||||||
{
|
{
|
||||||
$s='';
|
$s='';
|
||||||
|
$s.=$langs->trans("Version").': <b>'.$this->getVersion().'</b><br>';
|
||||||
if ($type == 0) $s.=$langs->trans("CustomerCodeDesc").'<br>';
|
if ($type == 0) $s.=$langs->trans("CustomerCodeDesc").'<br>';
|
||||||
if ($type == 1) $s.=$langs->trans("SupplierCodeDesc").'<br>';
|
if ($type == 1) $s.=$langs->trans("SupplierCodeDesc").'<br>';
|
||||||
if ($type != -1) $s.=$langs->trans("ValidityControledByModule").': <b>'.$this->getNom($langs).'</b><br>';
|
if ($type != -1) $s.=$langs->trans("ValidityControledByModule").': <b>'.$this->getNom($langs).'</b><br>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user