26require_once DOL_DOCUMENT_ROOT.
'/core/modules/societe/modules_societe.class.php';
44 public $name =
'Leopard';
46 public $code_modifiable;
48 public $code_modifiable_invalide;
50 public $code_modifiable_null;
58 public $version =
'dolibarr';
72 $this->code_modifiable = 1;
73 $this->code_modifiable_invalide = 1;
74 $this->code_modifiable_null = 1;
85 public function info($langs)
87 $langs->load(
"companies");
88 return $langs->trans(
"LeopardNumRefModelDesc");
99 public function getExample($langs, $objsoc = 0, $type = -1)
131 public function verif($db, &$code, $soc, $type)
138 if (empty($code) && $this->code_null && !
getDolGlobalString(
'MAIN_COMPANY_CODE_ALWAYS_REQUIRED')) {
140 } elseif (empty($code) && (!$this->code_null ||
getDolGlobalString(
'MAIN_COMPANY_CODE_ALWAYS_REQUIRED'))) {
144 dol_syslog(get_class($this).
"::verif type=".$type.
" result=".$result);
Parent class for third parties code generators.
Class to manage numbering of thirdparties code.
__construct()
Constructor.
verif($db, &$code, $soc, $type)
Check validity of code according to its rules.
info($langs)
Return description of module.
getNextValue($objsoc=0, $type=-1)
Return an example of result returned by getNextValue.
getExample($langs, $objsoc=0, $type=-1)
Return an example of result returned by getNextValue.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.