dolibarr 18.0.6
|
Class to manage accountancy code of thirdparties with Aquarium rules. More...
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. | |
verif ($db, $code, $societe, $type) | |
Return if a code is available. | |
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. | |
Class to manage accountancy code of thirdparties with Aquarium rules.
Definition at line 32 of file mod_codecompta_aquarium.php.
mod_codecompta_aquarium::get_code | ( | $db, | |
$societe, | |||
$type = '' ) |
Set accountancy account code for a third party into this->code.
DoliDB | $db | Database handler |
Societe | $societe | Third party object |
string | $type | 'customer' or 'supplier' |
Reimplemented from ModeleAccountancyCode.
Definition at line 150 of file mod_codecompta_aquarium.php.
References dol_syslog(), and verif().
mod_codecompta_aquarium::getExample | ( | $langs, | |
$objsoc = 0, | |||
$type = -1 ) |
Return an example of result returned by getNextValue.
Translate | $langs | Object langs |
societe | $objsoc | Object thirdparty |
int | $type | Type of third party (1:customer, 2:supplier, -1:autodetect) |
Reimplemented from ModeleAccountancyCode.
Definition at line 131 of file mod_codecompta_aquarium.php.
mod_codecompta_aquarium::info | ( | $langs | ) |
Return description of module.
Translate | $langs | Object langs |
Reimplemented from ModeleAccountancyCode.
Definition at line 81 of file mod_codecompta_aquarium.php.
mod_codecompta_aquarium::verif | ( | $db, | |
$code, | |||
$societe, | |||
$type ) |
Return if a code is available.
DoliDB | $db | Database handler |
string | $code | Code of third party |
Societe | $societe | Object third party |
string | $type | 'supplier' or 'customer' |
Definition at line 210 of file mod_codecompta_aquarium.php.
References dol_syslog().
Referenced by get_code().