dolibarr 19.0.3
mod_contract_magre Class Reference

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

Inheritance diagram for mod_contract_magre:
Collaboration diagram for mod_contract_magre:

Public Member Functions

 info ($langs)
 Return default description of numbering model.
 
 getExample ()
 Return numbering example.
 
 getNextValue ($objsoc, $contract)
 Return next value.
 
 contract_get_num ($objsoc, $objforref)
 Return next value.
 
- 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.
 
 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

Class to manage contract numbering rules Magre.

Definition at line 31 of file mod_contract_magre.php.

Member Function Documentation

◆ contract_get_num()

mod_contract_magre::contract_get_num ( $objsoc,
$objforref )

Return next value.

Parameters
Societe$objsocthird party object
Object$objforrefcontract object
Returns
string Value if OK, 0 if KO

Definition at line 151 of file mod_contract_magre.php.

References getNextValue().

◆ getExample()

mod_contract_magre::getExample ( )

Return numbering example.

Returns
string Example

Definition at line 103 of file mod_contract_magre.php.

References getNextValue().

◆ getNextValue()

mod_contract_magre::getNextValue ( $objsoc,
$contract )

Return next value.

Parameters
Societe$objsocthird party object
Object$contractcontract object
Returns
string Value if OK, 0 if KO

Definition at line 125 of file mod_contract_magre.php.

References get_next_value(), and getDolGlobalString().

Referenced by contract_get_num(), and getExample().

◆ 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 67 of file mod_contract_magre.php.

References getDolGlobalString().


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