|
dolibarr 18.0.8
|
Class to manage contract numbering rules Olive. More...


Public Member Functions | |
| info () | |
| Return description of module. | |
| 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 ModelNumRefContracts | |
| isEnabled () | |
| Return if a module can be used or not. | |
| getExample () | |
| Return numbering example. | |
| canBeActivated () | |
| Test if existing numbers make problems with numbering. | |
| getVersion () | |
| Return numbering version module. | |
Class to manage contract numbering rules Olive.
Definition at line 33 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 87 of file mod_contract_olive.php.
| mod_contract_olive::info | ( | ) |
Return description of module.
Reimplemented from ModelNumRefContracts.
Definition at line 72 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 107 of file mod_contract_olive.php.
References dol_syslog().