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

Class to manage reception numbering rules Beryl. More...

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

Public Member Functions

 info ($langs)
 Return default description of numbering model. More...
 
 getExample ()
 Return numbering example. More...
 
 canBeActivated ($object)
 Test if existing numbers make problems with numbering. More...
 
 getNextValue ($objsoc, $reception)
 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...
 
 getVersion ()
 Returns version of numbering module. More...
 

Detailed Description

Class to manage reception numbering rules Beryl.

Definition at line 31 of file mod_reception_beryl.php.

Member Function Documentation

◆ canBeActivated()

mod_reception_beryl::canBeActivated (   $object)

Test if existing numbers make problems with numbering.

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

Reimplemented from CommonNumRefGenerator.

Definition at line 69 of file mod_reception_beryl.php.

◆ getExample()

mod_reception_beryl::getExample ( )

Return numbering example.

Returns
string Example

Definition at line 57 of file mod_reception_beryl.php.

◆ getNextValue()

mod_reception_beryl::getNextValue (   $objsoc,
  $reception 
)

Return next value.

Parameters
Societe$objsocThird party object
Reception$receptionReception object
Returns
string|-1 Value if OK, -1 if KO

Definition at line 106 of file mod_reception_beryl.php.

◆ info()

mod_reception_beryl::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 45 of file mod_reception_beryl.php.


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