dolibarr 18.0.6
ModeleAccountancyCode Class Reference

Parent class for third parties accountancy code generators. More...

Inheritance diagram for ModeleAccountancyCode:

Public Member Functions

 info ($langs)
 Return description of module.
 
 getExample ($langs, $objsoc=0, $type=-1)
 Return an example of result returned by getNextValue.
 
 canBeActivated ()
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
 
 getVersion ()
 Return version of module.
 
 getToolTip ($langs, $soc, $type)
 Return description of module parameters.
 
 get_code ($db, $societe, $type='')
 Set accountancy account code for a third party into this->code.
 

Detailed Description

Parent class for third parties accountancy code generators.

Definition at line 276 of file modules_societe.class.php.

Member Function Documentation

◆ canBeActivated()

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

Definition at line 316 of file modules_societe.class.php.

◆ get_code()

ModeleAccountancyCode::get_code ( $db,
$societe,
$type = '' )

Set accountancy account code for a third party into this->code.

Parameters
DoliDB$dbDatabase handler
Societe$societeThird party object
int$type'customer' or 'supplier'
Returns
int >=0 if OK, <0 if KO

Reimplemented in mod_codecompta_aquarium, mod_codecompta_digitaria, and mod_codecompta_panicum.

Definition at line 394 of file modules_societe.class.php.

Referenced by getToolTip().

◆ getExample()

ModeleAccountancyCode::getExample ( $langs,
$objsoc = 0,
$type = -1 )

Return an example of result returned by getNextValue.

Parameters
Translate$langsObject langs
societe$objsocObject thirdparty
int$typeType of third party (1:customer, 2:supplier, -1:autodetect)
Returns
string Example

Reimplemented in mod_codecompta_aquarium, mod_codecompta_digitaria, and mod_codecompta_panicum.

Definition at line 304 of file modules_societe.class.php.

◆ getToolTip()

ModeleAccountancyCode::getToolTip ( $langs,
$soc,
$type )

Return description of module parameters.

Parameters
Translate$langsOutput language
Societe$socThird party object
int$type-1=Nothing, 0=Customer, 1=Supplier
Returns
string HTML translated description

Definition at line 352 of file modules_societe.class.php.

References get_code(), getVersion(), and name.

◆ getVersion()

ModeleAccountancyCode::getVersion ( )

Return version of module.

Returns
string Version

Definition at line 326 of file modules_societe.class.php.

Referenced by getToolTip().

◆ info()

ModeleAccountancyCode::info ( $langs)

Return description of module.

Parameters
Translate$langsObject langs
Returns
string Description of module

Reimplemented in mod_codecompta_aquarium, mod_codecompta_digitaria, and mod_codecompta_panicum.

Definition at line 290 of file modules_societe.class.php.


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