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

Parent class to manage numbering of batch products. More...

Inheritance diagram for ModeleNumRefBatch:
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 template. More...
 
 getExample ()
 Returns 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, $object)
 Returns next assigned value. More...
 
 getVersion ()
 Returns version of numbering module. More...
 

Detailed Description

Parent class to manage numbering of batch products.

Definition at line 70 of file modules_product_batch.class.php.

Member Function Documentation

◆ canBeActivated()

ModeleNumRefBatch::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_sn_standard, and mod_lot_standard.

Definition at line 117 of file modules_product_batch.class.php.

◆ getExample()

ModeleNumRefBatch::getExample ( )

Returns an example of numbering.

Returns
string Example

Reimplemented in mod_sn_standard, mod_sn_advanced, mod_lot_standard, and mod_lot_advanced.

Definition at line 104 of file modules_product_batch.class.php.

◆ getNextValue()

ModeleNumRefBatch::getNextValue (   $objsoc,
  $object 
)

Returns next assigned value.

Parameters
Societe$objsocObject thirdparty
Productlot$objectObject we need next value for
Returns
string Valeur

Reimplemented in mod_sn_standard, mod_sn_free, mod_sn_advanced, mod_lot_standard, mod_lot_free, and mod_lot_advanced.

Definition at line 129 of file modules_product_batch.class.php.

◆ getVersion()

ModeleNumRefBatch::getVersion ( )

Returns version of numbering module.

Returns
string Valeur

Definition at line 140 of file modules_product_batch.class.php.

◆ info()

ModeleNumRefBatch::info ( )

Returns the default description of the numbering template.

Returns
string Descriptive text

Reimplemented in mod_sn_standard, mod_sn_free, mod_sn_advanced, mod_lot_standard, mod_lot_free, and mod_lot_advanced.

Definition at line 92 of file modules_product_batch.class.php.

◆ isEnabled()

ModeleNumRefBatch::isEnabled ( )

Return if a module can be used or not.

Returns
boolean true if module can be used

Definition at line 82 of file modules_product_batch.class.php.


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