dolibarr  13.0.2
modAgenda.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2003,2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
4  * Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
5  * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
6  * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
7  * Copyright (C) 2009-2011 Regis Houssin <regis.houssin@inodbox.com>
8  * Copyright (C) 2013 Cedric Gross <c.gross@kreiz-it.fr>
9  * Copyright (C) 2015 Bahfir Abbes <bafbes@gmail.com>
10  * Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <https://www.gnu.org/licenses/>.
24  */
25 
33 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
34 
39 {
40 
46  public function __construct($db)
47  {
48  global $conf, $user;
49 
50  $this->db = $db;
51  $this->numero = 2400;
52 
53  $this->family = "projects";
54  $this->module_position = '15';
55  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
56  $this->name = preg_replace('/^mod/i', '', get_class($this));
57  $this->description = "Follow events or rendez-vous. Record manual events into Agendas or let application record automatic events for log tracking.";
58  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
59  $this->version = 'dolibarr';
60  // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
61  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
62  $this->picto = 'action';
63 
64  // Data directories to create when module is enabled
65  $this->dirs = array("/agenda/temp");
66 
67  // Config pages
68  $this->config_page_url = array("agenda_other.php");
69 
70  // Dependencies
71  $this->hidden = false; // A condition to hide module
72  $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
73  $this->requiredby = array(); // List of module ids to disable if this one is disabled
74  $this->conflictwith = array(); // List of module class names as string this module is in conflict with
75  $this->langfiles = array("companies");
76  $this->phpmin = array(5, 4); // Minimum version of PHP required by module
77 
78  // Module parts
79  $this->module_parts = array();
80 
81  // Constants
82  //-----------
83  // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
84  // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1),
85  // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1)
86  // );
87  $this->const = array();
88  //$this->const[] = array('AGENDA_DEFAULT_FILTER_TYPE', 'chaine', 'AC_NON_AUTO', 'Default filter for type of event on agenda', 0, 'current');
89  $sqlreadactions = "SELECT code, label, description FROM ".MAIN_DB_PREFIX."c_action_trigger ORDER by rang";
90  $resql = $this->db->query($sqlreadactions);
91  if ($resql)
92  {
93  while ($obj = $this->db->fetch_object($resql))
94  {
95  //if (preg_match('/_CREATE$/',$obj->code) && (! in_array($obj->code, array('COMPANY_CREATE','PRODUCT_CREATE','TASK_CREATE')))) continue; // We don't track such events (*_CREATE) by default, we prefer validation (except thirdparty/product/task creation because there is no validation).
96  if (preg_match('/^TASK_/', $obj->code)) continue; // We don't track such events by default.
97  //if (preg_match('/^_MODIFY/',$obj->code)) continue; // We don't track such events by default.
98  $this->const[] = array('MAIN_AGENDA_ACTIONAUTO_'.$obj->code, "chaine", "1", '', 0, 'current');
99  }
100  } else {
101  dol_print_error($this->db->lasterror());
102  }
103 
104  // New pages on tabs
105  // -----------------
106  $this->tabs = array();
107 
108  // Boxes
109  //------
110  $this->boxes = array(0=>array('file'=>'box_actions.php', 'enabledbydefaulton'=>'Home'));
111 
112  // Cronjobs
113  //------------
114  $datestart = dol_now();
115  $this->cronjobs = array(
116  0=>array('label'=>'SendEmailsReminders', 'jobtype'=>'method', 'class'=>'comm/action/class/actioncomm.class.php', 'objectname'=>'ActionComm', 'method'=>'sendEmailsReminder', 'parameters'=>'', 'comment'=>'SendEMailsReminder', 'frequency'=>5, 'unitfrequency'=>60, 'priority'=>10, 'status'=>1, 'test'=>'$conf->agenda->enabled', 'datestart'=>$datestart),
117  );
118 
119  // Permissions
120  //------------
121  $this->rights = array();
122  $this->rights_class = 'agenda';
123  $r = 0;
124 
125  // $this->rights[$r][0] Id permission (unique tous modules confondus)
126  // $this->rights[$r][1] Libelle par defaut si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission)
127  // $this->rights[$r][2] Non utilise
128  // $this->rights[$r][3] 1=Permis par defaut, 0=Non permis par defaut
129  // $this->rights[$r][4] Niveau 1 pour nommer permission dans code
130  // $this->rights[$r][5] Niveau 2 pour nommer permission dans code
131  // $r++;
132 
133  $this->rights[$r][0] = 2401;
134  $this->rights[$r][1] = 'Read actions/tasks linked to his account';
135  $this->rights[$r][2] = 'r';
136  $this->rights[$r][3] = 0;
137  $this->rights[$r][4] = 'myactions';
138  $this->rights[$r][5] = 'read';
139  $r++;
140 
141  $this->rights[$r][0] = 2402;
142  $this->rights[$r][1] = 'Create/modify actions/tasks linked to his account';
143  $this->rights[$r][2] = 'w';
144  $this->rights[$r][3] = 0;
145  $this->rights[$r][4] = 'myactions';
146  $this->rights[$r][5] = 'create';
147  $r++;
148 
149  $this->rights[$r][0] = 2403;
150  $this->rights[$r][1] = 'Delete actions/tasks linked to his account';
151  $this->rights[$r][2] = 'w';
152  $this->rights[$r][3] = 0;
153  $this->rights[$r][4] = 'myactions';
154  $this->rights[$r][5] = 'delete';
155  $r++;
156 
157  $this->rights[$r][0] = 2411;
158  $this->rights[$r][1] = 'Read actions/tasks of others';
159  $this->rights[$r][2] = 'r';
160  $this->rights[$r][3] = 0;
161  $this->rights[$r][4] = 'allactions';
162  $this->rights[$r][5] = 'read';
163  $r++;
164 
165  $this->rights[$r][0] = 2412;
166  $this->rights[$r][1] = 'Create/modify actions/tasks of others';
167  $this->rights[$r][2] = 'w';
168  $this->rights[$r][3] = 0;
169  $this->rights[$r][4] = 'allactions';
170  $this->rights[$r][5] = 'create';
171  $r++;
172 
173  $this->rights[$r][0] = 2413;
174  $this->rights[$r][1] = 'Delete actions/tasks of others';
175  $this->rights[$r][2] = 'w';
176  $this->rights[$r][3] = 0;
177  $this->rights[$r][4] = 'allactions';
178  $this->rights[$r][5] = 'delete';
179  $r++;
180 
181  $this->rights[$r][0] = 2414;
182  $this->rights[$r][1] = 'Export actions/tasks of others';
183  $this->rights[$r][2] = 'w';
184  $this->rights[$r][3] = 0;
185  $this->rights[$r][4] = 'export';
186 
187  // Main menu entries
188  $this->menu = array(); // List of menus to add
189  $r = 0;
190 
191  // Add here entries to declare new menus
192  // Example to declare the Top Menu entry:
193  // $this->menu[$r]=array( 'fk_menu'=>0, // Put 0 if this is a top menu
194  // 'type'=>'top', // This is a Top menu entry
195  // 'titre'=>'MyModule top menu',
196  // 'mainmenu'=>'mymodule',
197  // 'url'=>'/mymodule/pagetop.php',
198  // 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
199  // 'position'=>100,
200  // 'enabled'=>'1', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled.
201  // 'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
202  // 'target'=>'',
203  // 'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
204  // $r++;
205  $this->menu[$r] = array(
206  'fk_menu'=>0,
207  'type'=>'top',
208  'titre'=>'TMenuAgenda',
209  'mainmenu'=>'agenda',
210  'url'=>'/comm/action/index.php',
211  'langs'=>'agenda',
212  'position'=>86,
213  'perms'=>'$user->rights->agenda->myactions->read',
214  'enabled'=>'$conf->agenda->enabled',
215  'target'=>'',
216  'user'=>2,
217  );
218  $r++;
219 
220  $this->menu[$r] = array(
221  'fk_menu'=>'r=0',
222  'type'=>'left',
223  'titre'=>'Actions',
224  'mainmenu'=>'agenda',
225  'url'=>'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda',
226  'langs'=>'agenda',
227  'position'=>100,
228  'perms'=>'$user->rights->agenda->myactions->read',
229  'enabled'=>'$conf->agenda->enabled',
230  'target'=>'',
231  'user'=>2,
232  );
233  $r++;
234  $this->menu[$r] = array(
235  'fk_menu'=>'r=1',
236  'type'=>'left',
237  'titre'=>'NewAction',
238  'mainmenu'=>'agenda',
239  'url'=>'/comm/action/card.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create',
240  'langs'=>'commercial',
241  'position'=>101,
242  'perms'=>'($user->rights->agenda->myactions->create||$user->rights->agenda->allactions->create)',
243  'enabled'=>'$conf->agenda->enabled',
244  'target'=>'',
245  'user'=>2
246  );
247  $r++;
248  // Calendar
249  $this->menu[$r] = array(
250  'fk_menu'=>'r=1',
251  'type'=>'left',
252  'titre'=>'Calendar',
253  'mainmenu'=>'agenda',
254  'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda',
255  'langs'=>'agenda',
256  'position'=>140,
257  'perms'=>'$user->rights->agenda->myactions->read',
258  'enabled'=>'$conf->agenda->enabled',
259  'target'=>'',
260  'user'=>2
261  );
262  $r++;
263  $this->menu[$r] = array(
264  'fk_menu'=>'r=3',
265  'type'=>'left',
266  'titre'=>'MenuToDoMyActions',
267  'mainmenu'=>'agenda',
268  'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine',
269  'langs'=>'agenda',
270  'position'=>141,
271  'perms'=>'$user->rights->agenda->myactions->read',
272  'enabled'=>'$conf->agenda->enabled',
273  'target'=>'',
274  'user'=>2
275  );
276  $r++;
277  $this->menu[$r] = array(
278  'fk_menu'=>'r=3',
279  'type'=>'left',
280  'titre'=>'MenuDoneMyActions',
281  'mainmenu'=>'agenda',
282  'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine',
283  'langs'=>'agenda',
284  'position'=>142,
285  'perms'=>'$user->rights->agenda->myactions->read',
286  'enabled'=>'$conf->agenda->enabled',
287  'target'=>'',
288  'user'=>2
289  );
290  $r++;
291  $this->menu[$r] = array(
292  'fk_menu'=>'r=3',
293  'type'=>'left',
294  'titre'=>'MenuToDoActions',
295  'mainmenu'=>'agenda',
296  'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1',
297  'langs'=>'agenda',
298  'position'=>143,
299  'perms'=>'$user->rights->agenda->allactions->read',
300  'enabled'=>'$user->rights->agenda->allactions->read',
301  'target'=>'',
302  'user'=>2
303  );
304  $r++;
305  $this->menu[$r] = array(
306  'fk_menu'=>'r=3',
307  'type'=>'left',
308  'titre'=>'MenuDoneActions',
309  'mainmenu'=>'agenda',
310  'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1',
311  'langs'=>'agenda',
312  'position'=>144,
313  'perms'=>'$user->rights->agenda->allactions->read',
314  'enabled'=>'$user->rights->agenda->allactions->read',
315  'target'=>'',
316  'user'=>2
317  );
318 
319  // List
320  $r++;
321  $this->menu[$r] = array(
322  'fk_menu'=>'r=1',
323  'type'=>'left',
324  'titre'=>'List',
325  'mainmenu'=>'agenda',
326  'url'=>'/comm/action/list.php?action=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda',
327  'langs'=>'agenda',
328  'position'=>110,
329  'perms'=>'$user->rights->agenda->myactions->read',
330  'enabled'=>'$conf->agenda->enabled',
331  'target'=>'',
332  'user'=>2
333  );
334  $r++;
335  $this->menu[$r] = array(
336  'fk_menu'=>'r=8',
337  'type'=>'left',
338  'titre'=>'MenuToDoMyActions',
339  'mainmenu'=>'agenda',
340  'url'=>'/comm/action/list.php?action=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine',
341  'langs'=>'agenda',
342  'position'=>111,
343  'perms'=>'$user->rights->agenda->myactions->read',
344  'enabled'=>'$conf->agenda->enabled',
345  'target'=>'',
346  'user'=>2
347  );
348  $r++;
349  $this->menu[$r] = array(
350  'fk_menu'=>'r=8',
351  'type'=>'left',
352  'titre'=>'MenuDoneMyActions',
353  'mainmenu'=>'agenda',
354  'url'=>'/comm/action/list.php?action=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine',
355  'langs'=>'agenda',
356  'position'=>112,
357  'perms'=>'$user->rights->agenda->myactions->read',
358  'enabled'=>'$conf->agenda->enabled',
359  'target'=>'',
360  'user'=>2
361  );
362  $r++;
363  $this->menu[$r] = array(
364  'fk_menu'=>'r=8',
365  'type'=>'left',
366  'titre'=>'MenuToDoActions',
367  'mainmenu'=>'agenda',
368  'url'=>'/comm/action/list.php?action=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1',
369  'langs'=>'agenda',
370  'position'=>113,
371  'perms'=>'$user->rights->agenda->allactions->read',
372  'enabled'=>'$user->rights->agenda->allactions->read',
373  'target'=>'',
374  'user'=>2
375  );
376  $r++;
377  $this->menu[$r] = array(
378  'fk_menu'=>'r=8',
379  'type'=>'left',
380  'titre'=>'MenuDoneActions',
381  'mainmenu'=>'agenda',
382  'url'=>'/comm/action/list.php?action=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1',
383  'langs'=>'agenda',
384  'position'=>114,
385  'perms'=>'$user->rights->agenda->allactions->read',
386  'enabled'=>'$user->rights->agenda->allactions->read',
387  'target'=>'',
388  'user'=>2
389  );
390  $r++;
391  // Reports
392  $this->menu[$r] = array(
393  'fk_menu'=>'r=1',
394  'type'=>'left',
395  'titre'=>'Reportings',
396  'mainmenu'=>'agenda',
397  'url'=>'/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda',
398  'langs'=>'agenda',
399  'position'=>160,
400  'perms'=>'$user->rights->agenda->allactions->read',
401  'enabled'=>'$conf->agenda->enabled',
402  'target'=>'',
403  'user'=>2
404  );
405  $r++;
406  // Categories
407  $this->menu[$r] = array(
408  'fk_menu' => 'r=1',
409  'type' => 'left',
410  'titre' => 'Categories',
411  'mainmenu' => 'agenda',
412  'url'=>'/categories/index.php?mainmenu=agenda&amp;leftmenu=agenda&type=10',
413  'langs' => 'agenda',
414  'position' => 170,
415  'perms' => '$user->rights->agenda->allactions->read',
416  'enabled' => '$conf->categorie->enabled&&$conf->categorie->enabled',
417  'target' => '',
418  'user' => 2
419  );
420  $r++;
421 
422 
423  // Exports
424  //--------
425  $r = 0;
426 
427  $r++;
428  $this->export_code[$r] = $this->rights_class.'_'.$r;
429  $this->export_label[$r] = "ExportDataset_event1";
430  $this->export_permission[$r] = array(array("agenda", "export"));
431  $this->export_fields_array[$r] = array('ac.id'=>"IdAgenda", 'ac.ref_ext'=>"ExternalRef", 'ac.datec'=>"DateCreation", 'ac.datep'=>"DateActionBegin",
432  'ac.datep2'=>"DateActionEnd", 'ac.label'=>"Title", 'ac.note'=>"Note", 'ac.percent'=>"Percent", 'ac.durationp'=>"Duration",
433  'cac.libelle'=>"ActionType",
434  's.rowid'=>"IdCompany", 's.nom'=>'CompanyName', 's.address'=>'Address', 's.zip'=>'Zip', 's.town'=>'Town',
435  'co.code'=>'CountryCode', 's.phone'=>'Phone', 's.siren'=>'ProfId1', 's.siret'=>'ProfId2', 's.ape'=>'ProfId3', 's.idprof4'=>'ProfId4', 's.idprof5'=>'ProfId5', 's.idprof6'=>'ProfId6',
436  's.code_compta'=>'CustomerAccountancyCode', 's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra',
437  'p.ref' => 'ProjectRef',
438  );
439  $this->export_TypeFields_array[$r] = array('ac.ref_ext'=>"Text", 'ac.datec'=>"Date", 'ac.datep'=>"Date",
440  'ac.datep2'=>"Date", 'ac.label'=>"Text", 'ac.note'=>"Text", 'ac.percent'=>"Numeric",
441  'ac.durationp'=>"Duree",
442  'cac.libelle'=>"List:c_actioncomm:libelle:libelle",
443  's.nom'=>'Text', 's.address'=>'Text', 's.zip'=>'Text', 's.town'=>'Text',
444  'co.code'=>'Text', 's.phone'=>'Text', 's.siren'=>'Text', 's.siret'=>'Text', 's.ape'=>'Text', 's.idprof4'=>'Text', 's.idprof5'=>'Text', 's.idprof6'=>'Text',
445  's.code_compta'=>'Text', 's.code_compta_fournisseur'=>'Text', 's.tva_intra'=>'Text',
446  'p.ref' => 'Text',
447  );
448  $this->export_entities_array[$r] = array('ac.id'=>"action", 'ac.ref_ext'=>"action", 'ac.datec'=>"action", 'ac.datep'=>"action",
449  'ac.datep2'=>"action", 'ac.label'=>"action", 'ac.note'=>"action", 'ac.percent'=>"action", 'ac.durationp'=>"action",
450  'cac.libelle'=>"action",
451  's.rowid'=>"company", 's.nom'=>'company', 's.address'=>'company', 's.zip'=>'company', 's.town'=>'company',
452  'co.code'=>'company', 's.phone'=>'company', 's.siren'=>'company', 's.siret'=>'company', 's.ape'=>'company', 's.idprof4'=>'company', 's.idprof5'=>'company', 's.idprof6'=>'company',
453  's.code_compta'=>'company', 's.code_compta_fournisseur'=>'company', 's.tva_intra'=>'company',
454  'p.ref' => 'project',
455  );
456 
457  $this->export_sql_start[$r] = 'SELECT DISTINCT ';
458  $this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'actioncomm as ac';
459  $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_actioncomm as cac on ac.fk_action = cac.id';
460  if (!empty($user) && empty($user->rights->agenda->allactions->read)) $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'actioncomm_resources acr on ac.id = acr.fk_actioncomm';
461  $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'socpeople as sp on ac.fk_contact = sp.rowid';
462  $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe as s on ac.fk_soc = s.rowid';
463  if (!empty($user) && empty($user->rights->societe->client->voir)) $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe_commerciaux as sc ON sc.fk_soc = s.rowid';
464  $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_country as co on s.fk_pays = co.rowid';
465  $this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = ac.fk_project";
466  $this->export_sql_end[$r] .= ' WHERE ac.entity IN ('.getEntity('agenda').')';
467  if (empty($user->rights->societe->client->voir)) $this->export_sql_end[$r] .= ' AND (sc.fk_user = '.(empty($user) ? 0 : $user->id).' OR ac.fk_soc IS NULL)';
468  if (empty($user->rights->agenda->allactions->read)) $this->export_sql_end[$r] .= ' AND acr.fk_element = '.(empty($user) ? 0 : $user->id);
469  $this->export_sql_order[$r] = ' ORDER BY ac.datep';
470  }
471 }
Class DolibarrModules.
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
Definition: replenish.php:750
dol_now($mode= 'auto')
Return date for now.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:108
$conf db
API class for accounts.
Definition: inc.php:54
Class to describe and enable/disable module Agenda.
__construct($db)
Constructor.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.
Definition: index.php:1232
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...