dolibarr  13.0.2
Public Member Functions | List of all members
mod_reception_moonstone Class Reference

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

+ Inheritance diagram for mod_reception_moonstone:
+ Collaboration diagram for mod_reception_moonstone:

Public Member Functions

 info ()
 Return default description of numbering model. More...
 
 getExample ()
 Return numbering example. More...
 
 getNextValue ($objsoc, $reception)
 Return next value. More...
 
 reception_get_num ($objsoc, $objforref)
 Return next free value. More...
 
- Public Member Functions inherited from ModelNumRefReception
 isEnabled ()
 Return if a model can be used or not. More...
 
 info ()
 Return default description of numbering model. More...
 
 getExample ()
 Returns numbering example. More...
 
 canBeActivated ()
 Test if existing numbers make problems with numbering. More...
 
 getNextValue ($objsoc, $shipment)
 Returns next value assigned. More...
 
 getVersion ()
 Returns version of the numbering model. More...
 

Detailed Description

Class to manage reception numbering rules Moonstone.

Definition at line 31 of file mod_reception_moonstone.php.

Member Function Documentation

mod_reception_moonstone::getExample ( )

Return numbering example.

Returns
string Example

Definition at line 78 of file mod_reception_moonstone.php.

References getNextValue().

mod_reception_moonstone::getNextValue (   $objsoc,
  $reception 
)

Return next value.

Parameters
Societe$objsocThird party object
Object$receptionReception object
Returns
string Value if OK, 0 if KO

Definition at line 104 of file mod_reception_moonstone.php.

References get_next_value().

Referenced by getExample(), and reception_get_num().

mod_reception_moonstone::info ( )

Return default description of numbering model.

Returns
string text description

Definition at line 42 of file mod_reception_moonstone.php.

mod_reception_moonstone::reception_get_num (   $objsoc,
  $objforref 
)

Return next free value.

Parameters
Societe$objsocThird party object
Object$objforrefReception object
Returns
string Next free value

Definition at line 133 of file mod_reception_moonstone.php.

References getNextValue().


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