dolibarr 19.0.4
mod_delivery_saphir Class Reference

Classe du modele de numerotation de reference de livraison Saphir. More...

Inheritance diagram for mod_delivery_saphir:
Collaboration diagram for mod_delivery_saphir:

Public Member Functions

 info ($langs)
 Returns the description of the numbering model.
 
 getExample ()
 Return an example of number.
 
 getNextValue ($objsoc, $object)
 Return next value.
 
 getNumRef ($objsoc, $objforref)
 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.
 
 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

Classe du modele de numerotation de reference de livraison Saphir.

Definition at line 32 of file mod_delivery_saphir.php.

Member Function Documentation

◆ delivery_get_num()

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

Return next free ref.

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

Definition at line 168 of file mod_delivery_saphir.php.

References getNextValue().

◆ getExample()

mod_delivery_saphir::getExample ( )

Return an example of number.

Returns
string Example

Definition at line 104 of file mod_delivery_saphir.php.

References getNextValue().

◆ getNextValue()

mod_delivery_saphir::getNextValue ( $objsoc,
$object )

Return next value.

Parameters
Societe$objsocObject third party
Object$objectObject delivery
Returns
string Value if OK, 0 if KO

Definition at line 127 of file mod_delivery_saphir.php.

References get_next_value(), and getDolGlobalString().

Referenced by delivery_get_num(), getExample(), and getNumRef().

◆ getNumRef()

mod_delivery_saphir::getNumRef ( $objsoc,
$objforref )

Return next free value.

Parameters
Societe$objsocObject third party
string$objforrefObject for number to search
Returns
string Next free value

Definition at line 154 of file mod_delivery_saphir.php.

References getNextValue().

◆ info()

mod_delivery_saphir::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 64 of file mod_delivery_saphir.php.

References getDolGlobalString().


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