30require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/class/commonnumrefgenerator.class.php';
53 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
66 public $code_modifiable;
68 public $code_modifiable_invalide;
70 public $code_modifiable_null;
88 $langs->loadLangs(array(
"admin",
"companies"));
92 if (
getDolGlobalString(
'MAIN_MEMBER_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
93 $strikestart =
'<strike>';
94 $strikeend =
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
98 $s .= $langs->trans(
"Name").
': <b>'.$this->
getName($langs).
'</b><br>';
99 $s .= $langs->trans(
"Version").
': <b>'.$this->
getVersion().
'</b><br>';
100 $s .= $langs->trans(
"MemberCodeDesc").
'<br>';
101 $s .= $langs->trans(
"ValidityControledByModule").
': <b>'.$this->
getName($langs).
'</b><br>';
103 $s .=
'<u>'.$langs->trans(
"ThisIsModuleRules").
':</u><br>';
105 $s .= $langs->trans(
"Required").
': '.$strikestart;
106 $s .=
yn(!$this->code_null, 1, 2).$strikeend;
108 $s .= $langs->trans(
"CanBeModifiedIfOk").
': ';
109 $s .=
yn($this->code_modifiable, 1, 2);
111 $s .= $langs->trans(
"CanBeModifiedIfKo").
': '.
yn($this->code_modifiable_invalide, 1, 2).
'<br>';
112 $s .= $langs->trans(
"AutomaticCode").
': '.
yn($this->code_auto, 1, 2).
'<br>';
115 if (empty($nextval)) {
116 $nextval = $langs->trans(
"Undefined");
118 $s .= $langs->trans(
"NextValue").
' ('.$langs->trans(
"Member").
'): <b>'.$nextval.
'</b><br>';
Parent class for documents (PDF, ODT, ...) generators.
Parent class for number ref generators.
getVersion()
Returns version of numbering module.
getName($langs)
Return model name.
Classe 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.