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