dolibarr 18.0.6
|
Class to manage third party code with elephant rule. 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 next value. | |
verif_prefixIsUsed () | |
Check if mask/numbering use prefix. | |
verif ($db, &$code, $soc, $type) | |
Check validity of code according to its rules. | |
verif_dispo ($db, $code, $soc, $type=0) | |
Renvoi si un code est pris ou non (par autre tiers) | |
Public Member Functions inherited from ModeleThirdPartyCode | |
getNom ($langs) | |
Return name of module. | |
getExample ($langs) | |
Return an example of numbering. | |
canBeActivated () | |
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. | |
getVersion () | |
Return version of module. | |
getToolTip ($langs, $soc, $type) | |
Return description of module parameters. | |
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 third party code with elephant rule.
Definition at line 36 of file mod_codeclient_elephant.php.
mod_codeclient_elephant::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 162 of file mod_codeclient_elephant.php.
References getDolGlobalString(), and getNextValue().
mod_codeclient_elephant::getNextValue | ( | $objsoc = 0, | |
$type = -1 ) |
Return next value.
Reimplemented from ModeleThirdPartyCode.
Definition at line 221 of file mod_codeclient_elephant.php.
References dol_now(), and get_next_value().
Referenced by getExample().
mod_codeclient_elephant::info | ( | $langs | ) |
Return description of module.
Translate | $langs | Object langs |
Reimplemented from ModeleThirdPartyCode.
Definition at line 110 of file mod_codeclient_elephant.php.
References getDolGlobalString().
mod_codeclient_elephant::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 300 of file mod_codeclient_elephant.php.
References check_value(), dol_syslog(), and verif_dispo().
mod_codeclient_elephant::verif_dispo | ( | $db, | |
$code, | |||
$soc, | |||
$type = 0 ) |
Renvoi si un code est pris ou non (par autre tiers)
DoliDB | $db | Handler acces base |
string | $code | Code a verifier |
Societe | $soc | Objet societe |
int | $type | 0 = customer/prospect , 1 = supplier |
Definition at line 353 of file mod_codeclient_elephant.php.
Referenced by verif().
mod_codeclient_elephant::verif_prefixIsUsed | ( | ) |
Check if mask/numbering use prefix.
Reimplemented from ModeleThirdPartyCode.
Definition at line 266 of file mod_codeclient_elephant.php.