dolibarr  7.0.0-beta
Public Member Functions | List of all members
mod_codeproduct_leopard Class Reference

Classe permettant la gestion leopard des codes produits. More...

+ Inheritance diagram for mod_codeproduct_leopard:
+ Collaboration diagram for mod_codeproduct_leopard:

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return description of module. More...
 
 getNextValue ($objproduct=0, $type=-1)
 Return an example of result returned by getNextValue. More...
 
 verif ($db, &$code, $product, $type)
 Check validity of code according to its rules. More...
 
- Public Member Functions inherited from ModeleProductCode
 info ($langs)
 Renvoi la description par defaut du modele de numerotation. More...
 
 getNom ($langs)
 Renvoi nom module. More...
 
 getExample ($langs)
 Renvoi un exemple de numerotation. More...
 
 canBeActivated ()
 Test si les numeros deja en vigueur dans la base ne provoquent pas de de conflits qui empechera cette numerotation de fonctionner. More...
 
 getNextValue ($objproduct=0, $type=-1)
 Return next value available. More...
 
 getVersion ()
 Return version of module. More...
 
 getToolTip ($langs, $product, $type)
 Return description of module parameters. More...
 
 verif_prefixIsUsed ()
 Check if mask/numbering use prefix. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ModeleProductCode
static liste_modeles ($db, $maxfilenamelength=0)
 Renvoi la liste des modeles de num√©rotation. More...
 

Detailed Description

Classe permettant la gestion leopard des codes produits.

Definition at line 33 of file mod_codeproduct_leopard.php.

Member Function Documentation

mod_codeproduct_leopard::getNextValue (   $objproduct = 0,
  $type = -1 
)

Return an example of result returned by getNextValue.

Parameters
product$objproductObject product
int$typeType of third party (1:customer, 2:supplier, -1:autodetect)
Returns
string Return next value

Definition at line 84 of file mod_codeproduct_leopard.php.

mod_codeproduct_leopard::info (   $langs)

Return description of module.

Parameters
Translate$langsObject langs
Returns
string Description of module

Definition at line 70 of file mod_codeproduct_leopard.php.

mod_codeproduct_leopard::verif (   $db,
$code,
  $product,
  $type 
)

Check validity of code according to its rules.

Parameters
DoliDB$dbDatabase handler
string$codeCode to check/correct
Product$productObject product
int$type0 = product , 1 = service
Returns
int 0 if OK -1 ErrorBadProductCodeSyntax -2 ErrorProductCodeRequired -3 ErrorProductCodeAlreadyUsed -4 ErrorPrefixRequired

Definition at line 104 of file mod_codeproduct_leopard.php.

References dol_syslog().


The documentation for this class was generated from the following file: