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

Class to manage expensereport numbering rules Jade. More...

+ Inheritance diagram for mod_expensereport_jade:
+ Collaboration diagram for mod_expensereport_jade:

Public Member Functions

 info ()
 Return description of numbering model. More...
 
 getExample ()
 Returns an example of numbering. More...
 
 canBeActivated ()
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. More...
 
 getNextValue ($object)
 Return next free value. More...
 
- Public Member Functions inherited from ModeleNumRefExpenseReport
 isEnabled ()
 Return if a model can be used or not. More...
 
 info ()
 Returns the default description of the numbering model. More...
 
 getExample ()
 Returns an example of numbering. More...
 
 canBeActivated ()
 Test whether the numbers already in force in the base do not cause conflicts that would prevent this numbering working. More...
 
 getNextValue ($object)
 Returns next assigned value. More...
 
 getVersion ()
 Returns the version of the numbering module. More...
 

Detailed Description

Class to manage expensereport numbering rules Jade.

Definition at line 29 of file mod_expensereport_jade.php.

Member Function Documentation

mod_expensereport_jade::canBeActivated ( )

Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.

Returns
boolean false if conflict, true if ok

Definition at line 86 of file mod_expensereport_jade.php.

References $resql.

mod_expensereport_jade::getExample ( )

Returns an example of numbering.

Returns
string Example

Definition at line 74 of file mod_expensereport_jade.php.

mod_expensereport_jade::getNextValue (   $object)

Return next free value.

Parameters
Object$objectObject we need next value for
Returns
string Value if KO, <0 if KO

Definition at line 120 of file mod_expensereport_jade.php.

References $resql, dol_print_error(), dol_syslog(), and dolGetFirstLastname().

mod_expensereport_jade::info ( )

Return description of numbering model.

Returns
string Text with description

Definition at line 62 of file mod_expensereport_jade.php.


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