dolibarr  20.0.0-beta
Public Member Functions | List of all members
mod_contract_magre Class Reference

Class to manage contract numbering rules Magre. More...

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

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return default description of numbering model. More...
 
 getExample ()
 Return numbering example. More...
 
 getNextValue ($objsoc, $contract)
 Return next value. More...
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name. More...
 
 getName ($langs)
 Return model name. More...
 
 isEnabled ()
 Return if a module can be used or not. More...
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. More...
 
 getVersion ()
 Returns version of numbering module. More...
 

Detailed Description

Class to manage contract numbering rules Magre.

Definition at line 31 of file mod_contract_magre.php.

Member Function Documentation

◆ getExample()

mod_contract_magre::getExample ( )

Return numbering example.

Returns
string Example

Definition at line 89 of file mod_contract_magre.php.

◆ getNextValue()

mod_contract_magre::getNextValue (   $objsoc,
  $contract 
)

Return next value.

Parameters
Societe$objsocthird party object
Contrat$contractcontract object
Returns
string|0 Next value if OK, 0 if KO

Definition at line 111 of file mod_contract_magre.php.

◆ info()

mod_contract_magre::info (   $langs)

Return default description of numbering model.

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

Reimplemented from CommonNumRefGenerator.

Definition at line 53 of file mod_contract_magre.php.


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