dolibarr 21.0.0-alpha
|
Class template for classes of numbering product. More...
Public Member Functions | |
getNextValue ($objproduct='', $type=-1) | |
Return next value available. | |
getToolTip ($langs, $product, $type) | |
Return description of module parameters. | |
verif_prefixIsUsed () | |
Check if mask/numbering use prefix. | |
getExample ($langs=null, $objproduct='', $type=-1) | |
Return an example of result returned by getNextValue. | |
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. | |
info ($langs) | |
Returns the default description of the numbering template. | |
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. | |
Static Public Member Functions | |
static | liste_modeles ($dbs, $maxfilenamelength=0) |
Renvoi la liste des modeles de numérotation. | |
Class template for classes of numbering product.
Definition at line 79 of file modules_product.class.php.
ModeleProductCode::getExample | ( | $langs = null, | |
$objproduct = '', | |||
$type = -1 ) |
Return an example of result returned by getNextValue.
?Translate | $langs | Object langs |
Product | string | $objproduct | Object product |
int<-1,2> | $type Type of third party (1:customer, 2:supplier, -1:autodetect) |
Reimplemented in mod_codeproduct_elephant, and mod_codeproduct_leopard.
Definition at line 212 of file modules_product.class.php.
ModeleProductCode::getNextValue | ( | $objproduct = '', | |
$type = -1 ) |
Return next value available.
Product | string | $objproduct | Object product |
int | $type | Type |
Reimplemented in mod_codeproduct_elephant, and mod_codeproduct_leopard.
Definition at line 88 of file modules_product.class.php.
Referenced by getToolTip().
ModeleProductCode::getToolTip | ( | $langs, | |
$product, | |||
$type ) |
Return description of module parameters.
Translate | $langs | Output language |
Product | $product | Product object |
int | $type | -1=Nothing, 0=Customer, 1=Supplier |
Definition at line 131 of file modules_product.class.php.
References getDolGlobalString(), CommonNumRefGenerator\getName(), getNextValue(), CommonNumRefGenerator\getVersion(), and yn().
|
static |
Renvoi la liste des modeles de numérotation.
Definition at line 102 of file modules_product.class.php.
ModeleProductCode::verif_prefixIsUsed | ( | ) |
Check if mask/numbering use prefix.
Reimplemented in mod_codeproduct_elephant.
Definition at line 197 of file modules_product.class.php.