31require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/class/commonnumrefgenerator.class.php';
54 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
78 $langs->loadLangs(array(
"admin",
"companies"));
82 if (
getDolGlobalString(
'MAIN_MEMBER_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
83 $strikestart =
'<strike>';
84 $strikeend =
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
88 $s .= $langs->trans(
"Name").
': <b>'.$this->
getName($langs).
'</b><br>';
89 $s .= $langs->trans(
"Version").
': <b>'.$this->
getVersion().
'</b><br>';
90 $s .= $langs->trans(
"MemberCodeDesc").
'<br>';
91 $s .= $langs->trans(
"ValidityControledByModule").
': <b>'.$this->
getName($langs).
'</b><br>';
93 $s .=
'<u>'.$langs->trans(
"ThisIsModuleRules").
':</u><br>';
95 $s .= $langs->trans(
"Required").
': '.$strikestart;
96 $s .=
yn(!$this->code_null, 1, 2).$strikeend;
98 $s .= $langs->trans(
"CanBeModifiedIfOk").
': ';
99 $s .=
yn($this->code_modifiable, 1, 2);
101 $s .= $langs->trans(
"CanBeModifiedIfKo").
': '.
yn($this->code_modifiable_invalide, 1, 2).
'<br>';
102 $s .= $langs->trans(
"AutomaticCode").
': '.
yn($this->code_auto, 1, 2).
'<br>';
105 if (empty($nextval)) {
106 $nextval = $langs->trans(
"Undefined");
108 $s .= $langs->trans(
"NextValue").
' ('.$langs->trans(
"Member").
'): <b>'.$nextval.
'</b><br>';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Parent class for documents (PDF, ODT, ...) generators.
Parent class for number ref generators.
getVersion()
Returns version of numbering module.
getName($langs)
Return model name.
Class mere des modeles de numerotation des references de members.
getToolTip($langs, $soc)
Return description of module parameters.
getNextValue($objsoc, $object)
Return next value.
Parent class to manage intervention document templates.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.