dolibarr 19.0.4
ModeleAccountancyCode Class Reference

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

Inheritance diagram for ModeleAccountancyCode:
Collaboration diagram for ModeleAccountancyCode:

Public Member Functions

 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.
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name TODO Replace with getName()
 
 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 for third parties accountancy code generators.

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

Member Function Documentation

◆ 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 268 of file modules_societe.class.php.

Referenced by getToolTip().

◆ 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 226 of file modules_societe.class.php.

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


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