25require_once DOL_DOCUMENT_ROOT.
'/core/modules/societe/modules_societe.class.php';
36 public $name =
'Panicum';
47 public $version =
'dolibarr';
49 public $position = 10;
66 public function info($langs)
68 return $langs->trans(
"ModuleCompanyCode".$this->
name);
79 public function getExample($langs, $objsoc = 0, $type = -1)
93 public function get_code($db, $societe, $type =
'')
98 if (is_object($societe)) {
99 if ($type ==
'supplier') {
100 $this->code = (($societe->code_compta_fournisseur !=
"") ? $societe->code_compta_fournisseur :
'');
102 $this->code = (($societe->code_compta !=
"") ? $societe->code_compta :
'');
Parent class for third parties accountancy code generators.
Class to manage accountancy code of thirdparties with Panicum rules.
get_code($db, $societe, $type='')
Set accountancy account code for a third party into this->code.
info($langs)
Return description of module.
__construct()
Constructor.
getExample($langs, $objsoc=0, $type=-1)
Return an example of result returned by getNextValue.
$conf db name
Only used if Module[ID]Name translation string is not found.