dolibarr 21.0.0-alpha
ModeleNumRefTakepos Class Reference

Parent Class of the models to number the cash register receipts. More...

Inheritance diagram for ModeleNumRefTakepos:
Collaboration diagram for ModeleNumRefTakepos:

Public Member Functions

 getNextValue ($objsoc=null, $invoice=null, $mode='next')
 Return next free value.
 
 getExample ()
 Return an example of numbering.
 
- 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.
 
 info ($langs)
 Returns the default description of the numbering template.
 
 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

Parent Class of the models to number the cash register receipts.

Definition at line 36 of file modules_takepos.php.

Member Function Documentation

◆ getExample()

ModeleNumRefTakepos::getExample ( )
abstract

Return an example of numbering.

Returns
string Example

Reimplemented in mod_takepos_ref_simple, and mod_takepos_ref_universal.

◆ getNextValue()

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

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 in mod_takepos_ref_simple, and mod_takepos_ref_universal.


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