dolibarr  17.0.0
Public Member Functions | List of all members
mod_codeclient_leopard Class Reference

Class to manage numbering of thirdparties code. More...

Inheritance diagram for mod_codeclient_leopard:
Inheritance graph
[legend]
Collaboration diagram for mod_codeclient_leopard:
Collaboration graph
[legend]

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return description of module. More...
 
 getNextValue ($objsoc=0, $type=-1)
 Return an example of result returned by getNextValue. More...
 
 verif ($db, &$code, $soc, $type)
 Check validity of code according to its rules. More...
 
- Public Member Functions inherited from ModeleThirdPartyCode
 getNom ($langs)
 Return name of module. More...
 
 getExample ($langs)
 Return an example of numbering. More...
 
 canBeActivated ()
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. More...
 
 getVersion ()
 Return version of module. More...
 
 getToolTip ($langs, $soc, $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 ModeleThirdPartyCode
static liste_modeles ($dbs, $maxfilenamelength=0)
 Renvoie la liste des modeles de num√©rotation. More...
 

Detailed Description

Class to manage numbering of thirdparties code.

Definition at line 32 of file mod_codeclient_leopard.php.

Member Function Documentation

◆ getNextValue()

mod_codeclient_leopard::getNextValue (   $objsoc = 0,
  $type = -1 
)

Return an example of result returned by getNextValue.

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

Reimplemented from ModeleThirdPartyCode.

Definition at line 99 of file mod_codeclient_leopard.php.

◆ info()

mod_codeclient_leopard::info (   $langs)

Return description of module.

Parameters
Translate$langsObject langs
Returns
string Description of module

Reimplemented from ModeleThirdPartyCode.

Definition at line 85 of file mod_codeclient_leopard.php.

◆ verif()

mod_codeclient_leopard::verif (   $db,
$code,
  $soc,
  $type 
)

Check validity of code according to its rules.

Parameters
DoliDB$dbDatabase handler
string$codeCode to check/correct
Societe$socObject third party
int$type0 = customer/prospect , 1 = supplier
Returns
int 0 if OK -1 ErrorBadCustomerCodeSyntax -2 ErrorCustomerCodeRequired -3 ErrorCustomerCodeAlreadyUsed -4 ErrorPrefixRequired

Definition at line 119 of file mod_codeclient_leopard.php.


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