dolibarr 19.0.3
|
Class to manage numbering of thirdparties code. More...
Public Member Functions | |
__construct () | |
Constructor. | |
info ($langs) | |
Return description of module. | |
getExample ($langs, $objsoc=0, $type=-1) | |
Return an example of result returned by getNextValue. | |
getNextValue ($objsoc=0, $type=-1) | |
Return an example of result returned by getNextValue. | |
verif ($db, &$code, $soc, $type) | |
Check validity of code according to its rules. | |
Public Member Functions inherited from ModeleThirdPartyCode | |
getToolTip ($langs, $soc, $type) | |
Return description of module parameters. | |
verif_prefixIsUsed () | |
Check if mask/numbering use prefix. | |
Public Member Functions inherited from CommonNumRefGenerator | |
getNom ($langs) | |
Return model name TODO Replace with getName() | |
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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ModeleThirdPartyCode | |
static | liste_modeles ($dbs, $maxfilenamelength=0) |
Renvoie la liste des modeles de numérotation. | |
Class to manage numbering of thirdparties code.
Definition at line 32 of file mod_codeclient_leopard.php.
mod_codeclient_leopard::getExample | ( | $langs, | |
$objsoc = 0, | |||
$type = -1 ) |
Return an example of result returned by getNextValue.
Translate | $langs | Object langs |
societe | $objsoc | Object thirdparty |
int | $type | Type of third party (1:customer, 2:supplier, -1:autodetect) |
Definition at line 99 of file mod_codeclient_leopard.php.
mod_codeclient_leopard::getNextValue | ( | $objsoc = 0, | |
$type = -1 ) |
Return an example of result returned by getNextValue.
societe | $objsoc | Object thirdparty |
int | $type | Type of third party (1:customer, 2:supplier, -1:autodetect) |
Reimplemented from ModeleThirdPartyCode.
Definition at line 111 of file mod_codeclient_leopard.php.
mod_codeclient_leopard::info | ( | $langs | ) |
Return description of module.
Translate | $langs | Object langs |
Reimplemented from CommonNumRefGenerator.
Definition at line 85 of file mod_codeclient_leopard.php.
mod_codeclient_leopard::verif | ( | $db, | |
& | $code, | ||
$soc, | |||
$type ) |
Check validity of code according to its rules.
DoliDB | $db | Database handler |
string | $code | Code to check/correct |
Societe | $soc | Object third party |
int | $type | 0 = customer/prospect , 1 = supplier |
Definition at line 131 of file mod_codeclient_leopard.php.
References dol_syslog(), and getDolGlobalString().