27require_once DOL_DOCUMENT_ROOT.
'/core/modules/societe/modules_societe.class.php';
38 public $name =
'Panicum';
49 public $version =
'dolibarr';
51 public $position = 10;
68 public function info($langs)
70 return $langs->trans(
"ModuleCompanyCode".$this->
name);
82 public function getExample($langs =
null, $objsoc =
'', $type = -1)
96 public function get_code($db, $societe, $type =
'')
101 if (is_object($societe)) {
102 if ($type ==
'supplier') {
103 $this->code = (($societe->code_compta_fournisseur !=
"") ? $societe->code_compta_fournisseur :
'');
105 $this->code = (($societe->code_compta_client !=
"") ? $societe->code_compta_client :
'');
Parent class for third parties accountancy code generators.
Class to manage accountancy code of thirdparties with Panicum rules.
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.
info($langs)
Return description of module.
__construct()
Constructor.
$conf db name
Only used if Module[ID]Name translation string is not found.