dolibarr 18.0.6
mod_codecompta_digitaria Class Reference

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

Inheritance diagram for mod_codecompta_digitaria:
Collaboration diagram for mod_codecompta_digitaria:

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return description of module.
 
 getExample ($langs, $objsoc=0, $type=-1)
 Return an example of result returned by getNextValue.
 
 get_code ($db, $societe, $type='')
 Set accountancy account code for a third party into this->code.
 
 checkIfAccountancyCodeIsAlreadyUsed ($db, $code, $type='')
 Check accountancy account code for a third party into this->code.
 
- Public Member Functions inherited from ModeleAccountancyCode
 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.
 

Detailed Description

Class to manage accountancy code of thirdparties with Digitaria rules.

Definition at line 33 of file mod_codecompta_digitaria.php.

Member Function Documentation

◆ checkIfAccountancyCodeIsAlreadyUsed()

mod_codecompta_digitaria::checkIfAccountancyCodeIsAlreadyUsed ( $db,
$code,
$type = '' )

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

Parameters
DoliDB$dbDatabase handler
string$codeCode of third party
int$type'customer' or 'supplier'
Returns
int >=0 if OK, <0 if KO

Definition at line 276 of file mod_codecompta_digitaria.php.

References dol_syslog().

Referenced by get_code().

◆ get_code()

mod_codecompta_digitaria::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 from ModeleAccountancyCode.

Definition at line 187 of file mod_codecompta_digitaria.php.

References checkIfAccountancyCodeIsAlreadyUsed(), and dol_syslog().

◆ getExample()

mod_codecompta_digitaria::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 from ModeleAccountancyCode.

Definition at line 161 of file mod_codecompta_digitaria.php.

◆ info()

mod_codecompta_digitaria::info ( $langs)

Return description of module.

Parameters
Translate$langsObject langs
Returns
string Description of module

Reimplemented from ModeleAccountancyCode.

Definition at line 92 of file mod_codecompta_digitaria.php.

References name, and yn().


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