25 require_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') $this->
code = (($societe->code_compta_fournisseur !=
"") ? $societe->code_compta_fournisseur :
'');
95 else $this->
code = (($societe->code_compta !=
"") ? $societe->code_compta :
'');
if(!empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'] country if(!empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'] typent code
Class to manage accountancy code of thirdparties with Panicum rules.
$conf db name
Only used if Module[ID]Name translation string is not found.
Parent class for third parties accountancy code generators.
__construct()
Constructor.
getExample($langs, $objsoc=0, $type=-1)
Return an example of result returned by getNextValue.
info($langs)
Return description of module.
get_code($db, $societe, $type= '')
Set accountancy account code for a third party into this->code.