dolibarr 20.0.0
|
Class permettant la gestion leopard des codes produits. More...
Public Member Functions | |
__construct () | |
Constructor. | |
info ($langs) | |
Return description of module. | |
getExample ($langs, $objproduct=null, $type=-1) | |
Return an example of result returned by getNextValue. | |
getNextValue ($objproduct='', $type=-1) | |
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 ModeleProductCode | |
getToolTip ($langs, $product, $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. | |
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 ModeleProductCode | |
static | liste_modeles ($dbs, $maxfilenamelength=0) |
Renvoi la liste des modeles de numérotation. | |
Class permettant la gestion leopard des codes produits.
Definition at line 35 of file mod_codeproduct_leopard.php.
mod_codeproduct_leopard::getExample | ( | $langs, | |
$objproduct = null, | |||
$type = -1 ) |
Return an example of result returned by getNextValue.
Translate | $langs | Object langs |
Product | $objproduct | Object product |
int | $type | Type of third party (1:customer, 2:supplier, -1:autodetect) |
Definition at line 80 of file mod_codeproduct_leopard.php.
mod_codeproduct_leopard::getNextValue | ( | $objproduct = '', | |
$type = -1 ) |
Return an example of result returned by getNextValue.
Product | string | $objproduct | Object product |
int | $type | Type of third party (1:customer, 2:supplier, -1:autodetect) |
Reimplemented from ModeleProductCode.
Definition at line 92 of file mod_codeproduct_leopard.php.
mod_codeproduct_leopard::info | ( | $langs | ) |
Return description of module.
Translate | $langs | Object langs |
Reimplemented from CommonNumRefGenerator.
Definition at line 66 of file mod_codeproduct_leopard.php.
mod_codeproduct_leopard::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 111 of file mod_codeproduct_leopard.php.
References dol_syslog(), and getDolGlobalString().