dolibarr 21.0.0-alpha
|
Class to manage contract numbering rules Olive. More...
Public Member Functions | |
__construct () | |
Constructor. | |
info ($langs) | |
Return description of module. | |
getExample () | |
Return numbering example. | |
getNextValue ($objsoc, $contract) | |
Return an example of result returned by getNextValue. | |
verif ($db, &$code, $product, $type) | |
Check validity of code according to its rules. | |
Public Member Functions inherited from CommonNumRefGenerator | |
getNom ($langs) | |
Return model name. | |
getName ($langs) | |
Return model name. | |
isEnabled () | |
Return if a module can be used or not. | |
canBeActivated ($object) | |
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. | |
getVersion () | |
Returns version of numbering module. | |
Class to manage contract numbering rules Olive.
Definition at line 35 of file mod_contract_olive.php.
mod_contract_olive::getExample | ( | ) |
Return numbering example.
Reimplemented from ModelNumRefContracts.
Definition at line 72 of file mod_contract_olive.php.
mod_contract_olive::getNextValue | ( | $objsoc, | |
$contract ) |
Return an example of result returned by getNextValue.
Reimplemented from ModelNumRefContracts.
Definition at line 84 of file mod_contract_olive.php.
mod_contract_olive::info | ( | $langs | ) |
Return description of module.
Translate | $langs | Lang object to use for output |
Reimplemented from CommonNumRefGenerator.
Definition at line 59 of file mod_contract_olive.php.
mod_contract_olive::verif | ( | $db, | |
& | $code, | ||
$product, | |||
$type ) |
Check validity of code according to its rules.
DoliDB | $db | Database handler |
string | $code | Code to check/correct |
Product | $product | Object product |
int | $type | 0 = product , 1 = service |
Definition at line 103 of file mod_contract_olive.php.
References dol_syslog(), and getDolGlobalString().