dolibarr 21.0.0-alpha
ModeleNumRefCommandes Class Reference

Parent class to manage numbering of Sale Orders. More...

Inheritance diagram for ModeleNumRefCommandes:
Collaboration diagram for ModeleNumRefCommandes:

Public Member Functions

 getNextValue ($objsoc, $object)
 Return next free value.
 
 getExample ()
 Return an example of numbering.
 
- 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.
 

Detailed Description

Parent class to manage numbering of Sale Orders.

Definition at line 104 of file modules_commande.php.

Member Function Documentation

◆ getExample()

ModeleNumRefCommandes::getExample ( )
abstract

Return an example of numbering.

Returns
string Example

Reimplemented in mod_commande_marbre, and mod_commande_saphir.

◆ getNextValue()

ModeleNumRefCommandes::getNextValue ( $objsoc,
$object )
abstract

Return next free value.

Parameters
Societe$objsocObject thirdparty
Commande$objectObject we need next value for
Returns
string|int<-1,0> Value if OK, -1 if KO

Reimplemented in mod_commande_marbre, and mod_commande_saphir.


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