dolibarr 21.0.0-alpha
mod_takepos_ref_universal Class Reference

Class to manage ref numbering of takepos cards with rule universal. More...

Inheritance diagram for mod_takepos_ref_universal:
Collaboration diagram for mod_takepos_ref_universal:

Public Member Functions

 info ($langs)
 return description of the numbering model
 
 getExample ()
 Return an example of numbering.
 
 getNextValue ($objsoc=null, $invoice=null, $mode='next')
 Return next free value.
 
 getNumRef ($objsoc, $objforref)
 Return next free value.
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name.
 
 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

Class to manage ref numbering of takepos cards with rule universal.

Definition at line 37 of file mod_takepos_ref_universal.php.

Member Function Documentation

◆ getExample()

mod_takepos_ref_universal::getExample ( )

Return an example of numbering.

Returns
string Example

Reimplemented from ModeleNumRefTakepos.

Definition at line 104 of file mod_takepos_ref_universal.php.

References getNextValue().

◆ getNextValue()

mod_takepos_ref_universal::getNextValue ( $objsoc = null,
$invoice = null,
$mode = 'next' )

Return next free value.

Parameters
?Societe$objsocObject third party
?Facture$invoiceObject invoice
string$mode'next' for next value or 'last' for last value
Returns
string|int<-1,0> Next ref value or last ref if $mode is 'last'

Reimplemented from ModeleNumRefTakepos.

Definition at line 127 of file mod_takepos_ref_universal.php.

References dol_now(), get_next_value(), getDolGlobalString(), and getEntity().

Referenced by getExample(), and getNumRef().

◆ getNumRef()

mod_takepos_ref_universal::getNumRef ( $objsoc,
$objforref )

Return next free value.

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

Definition at line 161 of file mod_takepos_ref_universal.php.

References getNextValue().

◆ info()

mod_takepos_ref_universal::info ( $langs)

return description of the numbering model

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

Reimplemented from CommonNumRefGenerator.

Definition at line 62 of file mod_takepos_ref_universal.php.

References getDolGlobalString().


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