dolibarr 19.0.3
mod_delivery_jade Class Reference

Classe du modele de numerotation de reference de bon de livraison Jade. More...

Inheritance diagram for mod_delivery_jade:
Collaboration diagram for mod_delivery_jade:

Public Member Functions

 info ($langs)
 Returns the description of the numbering model.
 
 getExample ()
 Return an example of numbering.
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
 
 getNextValue ($objsoc, $object)
 Return next free value.
 
 delivery_get_num ($objsoc=0, $object='')
 Return next free ref.
 
- 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.
 
 getVersion ()
 Returns version of numbering module.
 

Detailed Description

Classe du modele de numerotation de reference de bon de livraison Jade.

Definition at line 35 of file mod_delivery_jade.php.

Member Function Documentation

◆ canBeActivated()

mod_delivery_jade::canBeActivated ( $object)

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

Parameters
Object$objectObject we need next value for
Returns
boolean false if conflict, true if ok

Reimplemented from CommonNumRefGenerator.

Definition at line 92 of file mod_delivery_jade.php.

◆ delivery_get_num()

mod_delivery_jade::delivery_get_num ( $objsoc = 0,
$object = '' )

Return next free ref.

Parameters
Societe$objsocObject thirdparty
Object$objectObject livraison
Returns
string Descriptive text

Definition at line 181 of file mod_delivery_jade.php.

References getNextValue().

◆ getExample()

mod_delivery_jade::getExample ( )

Return an example of numbering.

Returns
string Example

Definition at line 80 of file mod_delivery_jade.php.

◆ getNextValue()

mod_delivery_jade::getNextValue ( $objsoc,
$object )

Return next free value.

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

Definition at line 132 of file mod_delivery_jade.php.

References dol_now(), dol_print_date(), and dol_syslog().

Referenced by delivery_get_num().

◆ info()

mod_delivery_jade::info ( $langs)

Returns the description of the numbering model.

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

Reimplemented from CommonNumRefGenerator.

Definition at line 69 of file mod_delivery_jade.php.


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