25require_once DOL_DOCUMENT_ROOT.
'/core/modules/societe/modules_societe.class.php';
 
   36  public $name = 
'Panicum';
 
   42  public $version = 
'dolibarr'; 
 
   44  public $position = 10;
 
   61  public function info($langs)
 
   63    return $langs->trans(
"ModuleCompanyCode".$this->
name);
 
 
   74  public function getExample($langs, $objsoc = 0, $type = -1)
 
 
   88  public function get_code($db, $societe, $type = 
'')
 
   93    if (is_object($societe)) {
 
   94      if ($type == 
'supplier') {
 
   95        $this->code = (($societe->code_compta_fournisseur != 
"") ? $societe->code_compta_fournisseur : 
'');
 
   97        $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.