26require_once DOL_DOCUMENT_ROOT.
'/core/modules/societe/modules_societe.class.php';
 
   37  public $name = 
'Panicum';
 
   48  public $version = 
'dolibarr'; 
 
   50  public $position = 10;
 
   67  public function info($langs)
 
   69    return $langs->trans(
"ModuleCompanyCode".$this->
name);
 
 
   80  public function getExample($langs, $objsoc = 
'', $type = -1)
 
 
   94  public function get_code($db, $societe, $type = 
'')
 
   99    if (is_object($societe)) {
 
  100      if ($type == 
'supplier') {
 
  101        $this->code = (($societe->code_compta_fournisseur != 
"") ? $societe->code_compta_fournisseur : 
'');
 
  103        $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='', $type=-1)
Return an example of result returned by getNextValue.
 
$conf db name
Only used if Module[ID]Name translation string is not found.