dolibarr 21.0.0-beta
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=null, $objsoc='', $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
 getToolTip ($langs, $soc, $type)
 Return description of module parameters.
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name.
 
 getName ($langs)
 Return model name.
 
 isEnabled ()
 Return if a module can be used or not.
 
 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

Class to manage accountancy code of thirdparties with Digitaria rules.

Definition at line 34 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
string$type'customer' or 'supplier'
Returns
int >=0 if OK, <0 if KO

Definition at line 286 of file mod_codecompta_digitaria.php.

References $conf, dol_syslog(), and getDolGlobalString().

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
string$type'customer' or 'supplier'
Returns
int >=0 if OK, <0 if KO

Reimplemented from ModeleAccountancyCode.

Definition at line 199 of file mod_codecompta_digitaria.php.

References $conf, checkIfAccountancyCodeIsAlreadyUsed(), dol_syslog(), and getDolGlobalString().

◆ getExample()

mod_codecompta_digitaria::getExample ( $langs = null,
$objsoc = '',
$type = -1 )

Return an example of result returned by getNextValue.

Parameters
?Translate$langsObject langs
Societe | string$objsocObject thirdparty
int<-1,2>$type Type of third party (1:customer, 2:supplier, -1:autodetect)
Returns
string Return string example

Definition at line 169 of file mod_codecompta_digitaria.php.

References $conf.

◆ info()

mod_codecompta_digitaria::info ( $langs)

Return description of module.

Parameters
Translate$langsObject langs
Returns
string Description of module

Reimplemented from CommonNumRefGenerator.

Definition at line 100 of file mod_codecompta_digitaria.php.

References $conf, getDolGlobalString(), name, and yn().


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