|
dolibarr 18.0.8
|
Class template for classes of numbering product. More...

Public Member Functions | |
| info ($langs) | |
| Returns the default description of the numbering pattern. | |
| getNom ($langs) | |
| Renvoi nom 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. | |
| getNextValue ($objproduct=0, $type=-1) | |
| Return next value available. | |
| getVersion () | |
| Return version of module. | |
| getToolTip ($langs, $product, $type) | |
| Return description of module parameters. | |
| verif_prefixIsUsed () | |
| Check if mask/numbering use prefix. | |
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.
Parent class for product code generators.
Definition at line 100 of file modules_product.class.php.
| ModeleProductCode::canBeActivated | ( | ) |
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
@return boolean false if conflict, true if ok
Definition at line 145 of file modules_product.class.php.
| ModeleProductCode::getExample | ( | $langs | ) |
Return an example of numbering.
| Translate | $langs | Object langs |
Definition at line 134 of file modules_product.class.php.
| ModeleProductCode::getNextValue | ( | $objproduct = 0, | |
| $type = -1 ) |
Return next value available.
| Product | $objproduct | Object product |
| int | $type | Type |
Reimplemented in mod_codeproduct_elephant, and mod_codeproduct_leopard.
Definition at line 157 of file modules_product.class.php.
Referenced by getToolTip().
| ModeleProductCode::getNom | ( | $langs | ) |
Renvoi nom module.
| Translate | $langs | Object langs |
Definition at line 123 of file modules_product.class.php.
References name.
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 225 of file modules_product.class.php.
References getNextValue(), getNom(), getVersion(), and yn().
| ModeleProductCode::getVersion | ( | ) |
Return version of module.
Definition at line 168 of file modules_product.class.php.
Referenced by getToolTip().
| ModeleProductCode::info | ( | $langs | ) |
Returns the default description of the numbering pattern.
| Translate | $langs | Object langs |
Reimplemented in mod_codeproduct_elephant, and mod_codeproduct_leopard.
Definition at line 112 of file modules_product.class.php.
|
static |
Renvoi la liste des modeles de numérotation.
Definition at line 196 of file modules_product.class.php.
| ModeleProductCode::verif_prefixIsUsed | ( | ) |
Check if mask/numbering use prefix.
Reimplemented in mod_codeproduct_elephant.
Definition at line 293 of file modules_product.class.php.