dolibarr  9.0.0
Public Member Functions | Public Attributes | List of all members
mod_codecompta_panicum Class Reference

Class to manage accountancy code of thirdparties with Panicum rules. More...

+ Inheritance diagram for mod_codecompta_panicum:
+ Collaboration diagram for mod_codecompta_panicum:

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return description of module. More...
 
 getExample ($langs, $objsoc=0, $type=-1)
 Return an example of result returned by getNextValue. More...
 
 get_code ($db, $societe, $type='')
 Set accountancy account code for a third party into this->code. More...
 
- Public Member Functions inherited from ModeleAccountancyCode
 info ($langs)
 Return description of module. More...
 
 getExample ($langs, $objsoc=0, $type=-1)
 Return an example of result returned by getNextValue. More...
 
 canBeActivated ()
 Test si les numeros deja en vigueur dans la base ne provoquent pas de de conflits qui empechera cette numerotation de fonctionner. More...
 
 getVersion ()
 Return version of module. More...
 
 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 Attributes

 $version = 'dolibarr'
 Dolibarr version of the loaded document string.
 

Detailed Description

Class to manage accountancy code of thirdparties with Panicum rules.

Definition at line 31 of file mod_codecompta_panicum.php.

Member Function Documentation

◆ get_code()

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

Definition at line 93 of file mod_codecompta_panicum.php.

◆ getExample()

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

Definition at line 79 of file mod_codecompta_panicum.php.

◆ info()

mod_codecompta_panicum::info (   $langs)

Return description of module.

Parameters
Translate$langsObject langs
Returns
string Description of module

Definition at line 66 of file mod_codecompta_panicum.php.


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