dolibarr  19.0.0-dev
Public Member Functions | List of all members
ModeleNumRefTakepos Class Reference

Classe mere des modeles de numerotation des tickets de caisse. More...

Inheritance diagram for ModeleNumRefTakepos:
Inheritance graph
[legend]

Public Member Functions

 isEnabled ()
 Return if a module can be used or not. More...
 
 info ()
 Returns the default description of the numbering pattern. More...
 
 getExample ()
 Return 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 ($objsoc=null, $invoice=null, $mode='next')
 Renvoi prochaine valeur attribuee. More...
 
 getVersion ()
 Renvoi version du modele de numerotation. More...
 

Detailed Description

Classe mere des modeles de numerotation des tickets de caisse.

Definition at line 34 of file modules_takepos.php.

Member Function Documentation

◆ canBeActivated()

ModeleNumRefTakepos::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

Reimplemented in mod_takepos_ref_simple.

Definition at line 84 of file modules_takepos.php.

◆ getExample()

ModeleNumRefTakepos::getExample ( )

Return an example of numbering.

Returns
string Example

Reimplemented in mod_takepos_ref_universal, and mod_takepos_ref_simple.

Definition at line 71 of file modules_takepos.php.

◆ getNextValue()

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

Renvoi prochaine valeur attribuee.

Parameters
Societe$objsocObject thirdparty
Facture$invoiceObject invoice
string$mode'next' for next value or 'last' for last value
Returns
string Value if KO, <0 if KO

Reimplemented in mod_takepos_ref_universal, and mod_takepos_ref_simple.

Definition at line 97 of file modules_takepos.php.

◆ getVersion()

ModeleNumRefTakepos::getVersion ( )

Renvoi version du modele de numerotation.

Returns
string Valeur

Definition at line 108 of file modules_takepos.php.

◆ info()

ModeleNumRefTakepos::info ( )

Returns the default description of the numbering pattern.

Returns
string Descriptive text

Reimplemented in mod_takepos_ref_universal, and mod_takepos_ref_simple.

Definition at line 59 of file modules_takepos.php.

◆ isEnabled()

ModeleNumRefTakepos::isEnabled ( )

Return if a module can be used or not.

Returns
boolean true if module can be used

Definition at line 49 of file modules_takepos.php.


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