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");
119 public function verif($db, &$code, $soc, $type)
126 if (empty($code) && $this->code_null && empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED)) {
128 } elseif (empty($code) && (!$this->code_null || !empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED))) {
132 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.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.