dolibarr 19.0.3
mod_commande_fournisseur_muguet Class Reference

Classe du modele de numerotation de reference de commande fournisseur Muguet. More...

Inheritance diagram for mod_commande_fournisseur_muguet:
Collaboration diagram for mod_commande_fournisseur_muguet:

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return description of numbering module.
 
 getExample ()
 Return an example of numbering.
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
 
 getNextValue ($objsoc=0, $object='')
 Return next value.
 
 commande_get_num ($objsoc=0, $object='')
 Renvoie la reference de commande suivante non utilisee.
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name TODO Replace with getName()
 
 getName ($langs)
 Return model name.
 
 isEnabled ()
 Return if a module can be used or not.
 
 getVersion ()
 Returns version of numbering module.
 

Detailed Description

Classe du modele de numerotation de reference de commande fournisseur Muguet.

Definition at line 32 of file mod_commande_fournisseur_muguet.php.

Member Function Documentation

◆ canBeActivated()

mod_commande_fournisseur_muguet::canBeActivated ( $object)

Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.

Parameters
Object$objectObject we need next value for
Returns
boolean false if KO (there is a conflict), true if OK

Reimplemented from CommonNumRefGenerator.

Definition at line 101 of file mod_commande_fournisseur_muguet.php.

◆ commande_get_num()

mod_commande_fournisseur_muguet::commande_get_num ( $objsoc = 0,
$object = '' )

Renvoie la reference de commande suivante non utilisee.

Parameters
Societe$objsocObject third party
Object$objectObject
Returns
string Descriptive text

Definition at line 183 of file mod_commande_fournisseur_muguet.php.

References getNextValue().

◆ getExample()

mod_commande_fournisseur_muguet::getExample ( )

Return an example of numbering.

Returns
string Example

Definition at line 88 of file mod_commande_fournisseur_muguet.php.

◆ getNextValue()

mod_commande_fournisseur_muguet::getNextValue ( $objsoc = 0,
$object = '' )

Return next value.

Parameters
Societe$objsocObject third party
Object$objectObject
Returns
string Value if OK, 0 if KO

Definition at line 137 of file mod_commande_fournisseur_muguet.php.

References dol_print_date().

Referenced by commande_get_num().

◆ info()

mod_commande_fournisseur_muguet::info ( $langs)

Return description of numbering module.

Parameters
Translate$langsLang object to use for output
Returns
string Descriptive text

Reimplemented from CommonNumRefGenerator.

Definition at line 76 of file mod_commande_fournisseur_muguet.php.


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