dolibarr  20.0.0-alpha
Public Member Functions | List of all members
ModeleAccountancyCode Class Reference

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

Inheritance diagram for ModeleAccountancyCode:
Inheritance graph
[legend]
Collaboration diagram for ModeleAccountancyCode:
Collaboration graph
[legend]

Public Member Functions

 getToolTip ($langs, $soc, $type)
 Return description of module parameters. More...
 
 get_code ($db, $societe, $type='')
 Set accountancy account code for a third party into this->code. More...
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name. More...
 
 getName ($langs)
 Return model name. More...
 
 isEnabled ()
 Return if a module can be used or not. More...
 
 info ($langs)
 Returns the default description of the numbering template. More...
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. More...
 
 getVersion ()
 Returns version of numbering module. More...
 

Detailed Description

Parent class for third parties accountancy code generators.

Definition at line 203 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
string$type'customer' or 'supplier'
Returns
int<-1,1> >=0 if success, -1 if failure

Reimplemented in mod_codecompta_panicum, mod_codecompta_digitaria, and mod_codecompta_aquarium.

Definition at line 260 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 218 of file modules_societe.class.php.


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