dolibarr
25.0.0-alpha
Main Page
Related Pages
Topics
Classes
Files
Examples
File List
File Members
dolibarr_dev
htdocs
core
modules
modComptabilite.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
4
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
5
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19
*/
20
30
include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php'
;
31
32
36
class
modComptabilite
extends
DolibarrModules
37
{
43
public
function
__construct
($db)
44
{
45
$this->db = $db;
46
$this->numero = 10;
47
48
$this->family =
"financial"
;
49
$this->module_position =
'60'
;
50
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
51
$this->
name
= preg_replace(
'/^mod/i'
,
''
, get_class($this));
52
$this->
description
=
"Gestion sommaire de comptabilite"
;
53
54
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
55
$this->
version
=
'dolibarr'
;
56
57
$this->const_name =
'MAIN_MODULE_'
.strtoupper($this->
name
);
58
$this->picto =
'accountancy'
;
59
60
// Config pages
61
$this->config_page_url = array(
"compta.php"
);
62
63
// Dependencies
64
$this->depends = array(
"modFacture"
,
"modBanque"
);
65
$this->requiredby = array();
66
$this->conflictwith = array(
"modAccounting"
);
67
$this->langfiles = array(
"compta"
);
68
69
// Constants
70
$this->
const
= array();
71
72
// Data directories to create when module is enabled
73
$this->dirs = array(
74
"/comptabilite/temp"
,
75
"/comptabilite/rapport"
,
76
"/comptabilite/export"
,
77
"/comptabilite/bordereau"
78
);
79
80
// Boxes
81
$this->boxes = array();
82
83
// Permissions
84
$this->rights = array();
85
$this->rights_class =
'compta'
;
86
$r = 0;
87
88
$r++;
89
$this->rights[$r][0] = 95;
90
$this->rights[$r][1] =
'Lire CA, bilans, resultats'
;
91
$this->rights[$r][2] =
'r'
;
92
$this->rights[$r][3] = 0;
93
$this->rights[$r][4] =
'resultat'
;
94
$this->rights[$r][5] =
'lire'
;
95
96
97
// Menus
98
//-------
99
$this->menu = 1;
// This module add menu entries. They are coded into menu manager.
100
}
101
102
111
public
function
init
($options =
''
)
112
{
113
global
$conf
;
114
115
// Nettoyage avant activation
116
$this->
remove
($options);
117
118
$sql = array();
119
120
return
$this->
_init
($sql, $options);
121
}
122
}
$conf
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
Definition
chat_history.php:55
DolibarrModules
Class DolibarrModules.
Definition
DolibarrModules.class.php:40
DolibarrModules\_init
_init($array_sql, $options='')
Enables a module.
Definition
DolibarrModules.class.php:568
modComptabilite
Class to describe and enable module Comptabilite.
Definition
modComptabilite.class.php:37
modComptabilite\init
init($options='')
Function called when module is enabled.
Definition
modComptabilite.class.php:111
modComptabilite\__construct
__construct($db)
Constructor.
Definition
modComptabilite.class.php:43
description
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
Definition
email_expire_services_to_customers.php:96
version
$conf browser version
Definition
main.inc.php:229
name
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition
repair.php:165
Generated on Sun Nov 1 2026 01:00:21 for
dolibarr
by Doxygen 1.11.0