30 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
51 $this->family =
"financial";
52 $this->module_position =
'60';
54 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
55 $this->
description =
"Gestion sommaire de comptabilite";
58 $this->version =
'dolibarr';
60 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
61 $this->picto =
'accountancy';
64 $this->config_page_url = array(
"compta.php");
67 $this->depends = array(
"modFacture",
"modBanque");
68 $this->requiredby = array();
69 $this->conflictwith = array(
"modAccounting");
70 $this->langfiles = array(
"compta");
73 $this->
const = array();
78 "/comptabilite/rapport",
79 "/comptabilite/export",
80 "/comptabilite/bordereau"
84 $this->boxes = array();
87 $this->rights = array();
88 $this->rights_class =
'compta';
92 $this->rights[$r][0] = 95;
93 $this->rights[$r][1] =
'Lire CA, bilans, resultats';
94 $this->rights[$r][2] =
'r';
95 $this->rights[$r][3] = 0;
96 $this->rights[$r][4] =
'resultat';
97 $this->rights[$r][5] =
'lire';
114 public function init($options =
'')
119 $this->
remove($options);
_init($array_sql, $options='')
Enables a module.
Class to describe and enable module Comptabilite.
init($options='')
Function called when module is enabled.
__construct($db)
Constructor.
if(isModEnabled('facture') && $user->hasRight('facture', 'lire')) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') && $user->hasRight('don', 'lire')) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->hasRight("commande", "lire") &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $sql
Social contributions to pay.
print *****$script_file(".$version.") pid cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.