dolibarr  13.0.2
adherent.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
4  * Copyright (C) 2004-2012 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) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
8  * Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
9  * Copyright (C) 2012 J. Fernando Lagrange <fernando@demo-tic.org>
10  * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
11  * Copyright (C) 2020 Frédéric France <frederic.france@netlogic.fr>
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program. If not, see <https://www.gnu.org/licenses/>.
25  */
26 
33 require '../../main.inc.php';
34 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
35 require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
36 
37 // Load translation files required by the page
38 $langs->loadLangs(array("admin", "members"));
39 
40 if (!$user->admin) accessforbidden();
41 
42 
43 $choices = array('yesno', 'texte', 'chaine');
44 
45 $value = GETPOST('value', 'alpha');
46 $label = GETPOST('label', 'alpha');
47 $scandir = GETPOST('scandir', 'alpha');
48 $type = 'member';
49 
50 $action = GETPOST('action', 'aZ09');
51 
52 
53 /*
54  * Actions
55  */
56 
57 include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
58 
59 if ($action == 'set_default') {
60  $ret = addDocumentModel($value, $type, $label, $scandir);
61  $res = true;
62 } elseif ($action == 'del_default') {
63  $ret = delDocumentModel($value, $type);
64  if ($ret > 0) {
65  if ($conf->global->MEMBER_ADDON_PDF_ODT == "$value") {
66  dolibarr_del_const($db, 'MEMBER_ADDON_PDF_ODT', $conf->entity);
67  }
68  }
69  $res = true;
70 } elseif ($action == 'setdoc') {
71  // Set default model
72  if (dolibarr_set_const($db, "MEMBER_ADDON_PDF_ODT", $value, 'chaine', 0, '', $conf->entity)) {
73  // La constante qui a ete lue en avant du nouveau set
74  // on passe donc par une variable pour avoir un affichage coherent
75  $conf->global->MEMBER_ADDON_PDF_ODT = $value;
76  }
77 
78  // On active le modele
79  $ret = delDocumentModel($value, $type);
80  if ($ret > 0) {
81  $ret = addDocumentModel($value, $type, $label, $scandir);
82  }
83  $res = true;
84 } elseif (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) {
85  $code = $reg[1];
86  if (dolibarr_set_const($db, $code, 1, 'chaine', 0, '', $conf->entity) > 0) {
87  header("Location: ".$_SERVER["PHP_SELF"]);
88  exit;
89  } else {
90  dol_print_error($db);
91  }
92 } elseif (preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) {
93  $code = $reg[1];
94  if (dolibarr_del_const($db, $code, $conf->entity) > 0) {
95  header("Location: ".$_SERVER["PHP_SELF"]);
96  exit;
97  } else {
98  dol_print_error($db);
99  }
100 } elseif ($action == 'updateall') {
101  $db->begin();
102  $res1 = $res2 = $res3 = $res4 = $res5 = $res6 = 0;
103  $res1 = dolibarr_set_const($db, 'ADHERENT_LOGIN_NOT_REQUIRED', GETPOST('ADHERENT_LOGIN_NOT_REQUIRED', 'alpha') ? 0 : 1, 'chaine', 0, '', $conf->entity);
104  $res2 = dolibarr_set_const($db, 'ADHERENT_MAIL_REQUIRED', GETPOST('ADHERENT_MAIL_REQUIRED', 'alpha'), 'chaine', 0, '', $conf->entity);
105  $res3 = dolibarr_set_const($db, 'ADHERENT_DEFAULT_SENDINFOBYMAIL', GETPOST('ADHERENT_DEFAULT_SENDINFOBYMAIL', 'alpha'), 'chaine', 0, '', $conf->entity);
106  $res4 = dolibarr_set_const($db, 'ADHERENT_BANK_USE', GETPOST('ADHERENT_BANK_USE', 'alpha'), 'chaine', 0, '', $conf->entity);
107  // Use vat for invoice creation
108  if ($conf->facture->enabled) {
109  $res4 = dolibarr_set_const($db, 'ADHERENT_VAT_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_VAT_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
110  $res5 = dolibarr_set_const($db, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
111  if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
112  $res6 = dolibarr_set_const($db, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
113  }
114  }
115  if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0 || $res5 < 0 || $res6 < 0) {
116  setEventMessages('ErrorFailedToSaveDate', null, 'errors');
117  $db->rollback();
118  } else {
119  setEventMessages('RecordModifiedSuccessfully', null, 'mesgs');
120  $db->commit();
121  }
122 }
123 
124 // Action to update or add a constant
125 if ($action == 'update' || $action == 'add') {
126  $constname = GETPOST('constname', 'alpha');
127  $constvalue = (GETPOST('constvalue_'.$constname) ? GETPOST('constvalue_'.$constname) : GETPOST('constvalue'));
128 
129  if (($constname == 'ADHERENT_CARD_TYPE' || $constname == 'ADHERENT_ETIQUETTE_TYPE' || $constname == 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS') && $constvalue == -1) $constvalue = '';
130  if ($constname == 'ADHERENT_LOGIN_NOT_REQUIRED') { // Invert choice
131  if ($constvalue) $constvalue = 0;
132  else $constvalue = 1;
133  }
134 
135  $consttype = GETPOST('consttype', 'alpha');
136  $constnote = GETPOST('constnote');
137  $res = dolibarr_set_const($db, $constname, $constvalue, $choices[$consttype], 0, $constnote, $conf->entity);
138 
139  if (!($res > 0)) $error++;
140 
141  if (!$error) {
142  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
143  } else {
144  setEventMessages($langs->trans("Error"), null, 'errors');
145  }
146 }
147 
148 // Action to enable of a submodule of the adherent module
149 if ($action == 'set') {
150  $result = dolibarr_set_const($db, GETPOST('name', 'alpha'), GETPOST('value'), '', 0, '', $conf->entity);
151  if ($result < 0) {
152  print $db->error();
153  }
154 }
155 
156 // Action to disable a submodule of the adherent module
157 if ($action == 'unset') {
158  $result = dolibarr_del_const($db, GETPOST('name', 'alpha'), $conf->entity);
159  if ($result < 0) {
160  print $db->error();
161  }
162 }
163 
164 
165 
166 /*
167  * View
168  */
169 
170 $form = new Form($db);
171 
172 $help_url = 'EN:Module_Foundations|FR:Module_Adh&eacute;rents|ES:M&oacute;dulo_Miembros';
173 
174 llxHeader('', $langs->trans("MembersSetup"), $help_url);
175 
176 
177 $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
178 print load_fiche_titre($langs->trans("MembersSetup"), $linkback, 'title_setup');
179 
180 
181 $head = member_admin_prepare_head();
182 
183 print dol_get_fiche_head($head, 'general', $langs->trans("Members"), -1, 'user');
184 
185 print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
186 print '<input type="hidden" name="token" value="'.newToken().'">';
187 print '<input type="hidden" name="action" value="updateall">';
188 
189 print load_fiche_titre($langs->trans("MemberMainOptions"), '', '');
190 print '<table class="noborder centpercent">';
191 print '<tr class="liste_titre">';
192 print '<td>'.$langs->trans("Description").'</td>';
193 print '<td>'.$langs->trans("Value").'</td>';
194 print "</tr>\n";
195 
196 // Login/Pass required for members
197 print '<tr class="oddeven"><td>'.$langs->trans("AdherentLoginRequired").'</td><td>';
198 print $form->selectyesno('ADHERENT_LOGIN_NOT_REQUIRED', (!empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED) ? 0 : 1), 1);
199 print "</td></tr>\n";
200 
201 // Mail required for members
202 print '<tr class="oddeven"><td>'.$langs->trans("AdherentMailRequired").'</td><td>';
203 print $form->selectyesno('ADHERENT_MAIL_REQUIRED', (!empty($conf->global->ADHERENT_MAIL_REQUIRED) ? $conf->global->ADHERENT_MAIL_REQUIRED : 0), 1);
204 print "</td></tr>\n";
205 
206 // Send mail information is on by default
207 print '<tr class="oddeven"><td>'.$langs->trans("MemberSendInformationByMailByDefault").'</td><td>';
208 print $form->selectyesno('ADHERENT_DEFAULT_SENDINFOBYMAIL', (!empty($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL) ? $conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL : 0), 1);
209 print "</td></tr>\n";
210 
211 // Insert subscription into bank account
212 print '<tr class="oddeven"><td>'.$langs->trans("MoreActionsOnSubscription").'</td>';
213 $arraychoices = array('0'=>$langs->trans("None"));
214 if (!empty($conf->banque->enabled)) $arraychoices['bankdirect'] = $langs->trans("MoreActionBankDirect");
215 if (!empty($conf->banque->enabled) && !empty($conf->societe->enabled) && !empty($conf->facture->enabled)) $arraychoices['invoiceonly'] = $langs->trans("MoreActionInvoiceOnly");
216 if (!empty($conf->banque->enabled) && !empty($conf->societe->enabled) && !empty($conf->facture->enabled)) $arraychoices['bankviainvoice'] = $langs->trans("MoreActionBankViaInvoice");
217 print '<td>';
218 print $form->selectarray('ADHERENT_BANK_USE', $arraychoices, $conf->global->ADHERENT_BANK_USE, 0);
219 if ($conf->global->ADHERENT_BANK_USE == 'bankdirect' || $conf->global->ADHERENT_BANK_USE == 'bankviainvoice') {
220  print '<br><div style="padding-top: 5px;"><span class="opacitymedium">'.$langs->trans("ABankAccountMustBeDefinedOnPaymentModeSetup").'</span></div>';
221 }
222 print '</td>';
223 print "</tr>\n";
224 
225 // Use vat for invoice creation
226 if ($conf->facture->enabled) {
227  print '<tr class="oddeven"><td>'.$langs->trans("VATToUseForSubscriptions").'</td>';
228  if (!empty($conf->banque->enabled)) {
229  print '<td>';
230  print $form->selectarray('ADHERENT_VAT_FOR_SUBSCRIPTIONS', array('0'=>$langs->trans("NoVatOnSubscription"), 'defaultforfoundationcountry'=>$langs->trans("Default")), (empty($conf->global->ADHERENT_VAT_FOR_SUBSCRIPTIONS) ? '0' : $conf->global->ADHERENT_VAT_FOR_SUBSCRIPTIONS), 0);
231  print '</td>';
232  } else {
233  print '<td class="right">';
234  print $langs->trans("WarningModuleNotActive", $langs->transnoentities("Module85Name"));
235  print '</td>';
236  }
237  print "</tr>\n";
238 
239  if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
240  print '<tr class="oddeven"><td>'.$langs->trans("ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS").'</td>';
241  print '<td>';
242  $form->select_produits($conf->global->ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', '', 0);
243  print '</td>';
244  }
245  print "</tr>\n";
246 }
247 
248 print '</table>';
249 
250 print '<div class="center">';
251 print '<input type="submit" class="button" value="'.$langs->trans("Update").'" name="Button">';
252 print '</div>';
253 
254 print '</form>';
255 
256 print '<br>';
257 
258 
259 /*
260  * Edit info of model document
261  */
262 $constantes = array(
263  'ADHERENT_CARD_TYPE',
264  //'ADHERENT_CARD_BACKGROUND',
265  'ADHERENT_CARD_HEADER_TEXT',
266  'ADHERENT_CARD_TEXT',
267  'ADHERENT_CARD_TEXT_RIGHT',
268  'ADHERENT_CARD_FOOTER_TEXT'
269 );
270 
271 print load_fiche_titre($langs->trans("MembersCards"), '', '');
272 
273 $helptext = '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
274 $helptext .= '__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
275 $helptext .= '__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
276 $helptext .= '__YEAR__, __MONTH__, __DAY__';
277 
278 form_constantes($constantes, 0, $helptext);
279 
280 print '<br>';
281 
282 
283 /*
284  * Edit info of model document
285  */
286 $constantes = array('ADHERENT_ETIQUETTE_TYPE', 'ADHERENT_ETIQUETTE_TEXT');
287 
288 print load_fiche_titre($langs->trans("MembersTickets"), '', '');
289 
290 $helptext = '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
291 $helptext .= '__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
292 $helptext .= '__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
293 $helptext .= '__YEAR__, __MONTH__, __DAY__';
294 
295 form_constantes($constantes, 0, $helptext);
296 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
297 
298 // Defini tableau def des modeles
299 $def = array();
300 $sql = "SELECT nom";
301 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
302 $sql .= " WHERE type = '".$db->escape($type)."'";
303 $sql .= " AND entity = ".$conf->entity;
304 $resql = $db->query($sql);
305 if ($resql) {
306  $i = 0;
307  $num_rows = $db->num_rows($resql);
308  while ($i < $num_rows) {
309  $array = $db->fetch_array($resql);
310  array_push($def, $array[0]);
311  $i++;
312  }
313 } else {
314  dol_print_error($db);
315 }
316 
317 print load_fiche_titre($langs->trans("MembersDocModules"), '', '');
318 
319 print '<table class="noborder centpercent">';
320 print '<tr class="liste_titre">';
321 print '<td>'.$langs->trans("Name").'</td>';
322 print '<td>'.$langs->trans("Description").'</td>';
323 print '<td align="center" width="60">'.$langs->trans("Status")."</td>\n";
324 print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
325 print '<td align="center" width="80">'.$langs->trans("ShortInfo").'</td>';
326 print '<td align="center" width="80">'.$langs->trans("Preview").'</td>';
327 print "</tr>\n";
328 
329 clearstatcache();
330 
331 foreach ($dirmodels as $reldir) {
332  foreach (array('', '/doc') as $valdir) {
333  $dir = dol_buildpath($reldir."core/modules/member".$valdir);
334  if (is_dir($dir)) {
335  $handle = opendir($dir);
336  if (is_resource($handle)) {
337  while (($file = readdir($handle)) !== false) {
338  $filelist[] = $file;
339  }
340  closedir($handle);
341  arsort($filelist);
342  foreach ($filelist as $file) {
343  if (preg_match('/\.class\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
344  if (file_exists($dir.'/'.$file)) {
345  $name = substr($file, 4, dol_strlen($file) - 14);
346  $classname = substr($file, 0, dol_strlen($file) - 10);
347 
348  require_once $dir.'/'.$file;
349  $module = new $classname($db);
350 
351  $modulequalified = 1;
352  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) $modulequalified = 0;
353  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
354  $modulequalified = 0;
355  }
356 
357  if ($modulequalified) {
358  print '<tr class="oddeven"><td width="100">';
359  print (empty($module->name) ? $name : $module->name);
360  print "</td><td>\n";
361  if (method_exists($module, 'info')) {
362  print $module->info($langs);
363  } else {
364  print $module->description;
365  }
366  print '</td>';
367 
368  // Active
369  if (in_array($name, $def)) {
370  print '<td class="center">'."\n";
371  print '<a href="'.$_SERVER["PHP_SELF"].'?action=del_default&amp;token='.newToken().'&amp;value='.$name.'">';
372  print img_picto($langs->trans("Enabled"), 'switch_on');
373  print '</a>';
374  print '</td>';
375  } else {
376  print '<td class="center">'."\n";
377  print '<a href="'.$_SERVER["PHP_SELF"].'?action=set_default&amp;token='.newToken().'&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
378  print "</td>";
379  }
380 
381  // Defaut
382  print '<td class="center">';
383  if ($conf->global->MEMBER_ADDON_PDF == $name) {
384  print img_picto($langs->trans("Default"), 'on');
385  } else {
386  print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&amp;token='.newToken().'&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
387  }
388  print '</td>';
389 
390  // Info
391  $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
392  $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
393  if ($module->type == 'pdf') {
394  $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
395  }
396  $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
397  $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
398  $htmltooltip .= '<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
399 
400 
401  print '<td class="center">';
402  print $form->textwithpicto('', $htmltooltip, 1, 0);
403  print '</td>';
404 
405  // Preview
406  print '<td class="center">';
407  if ($module->type == 'pdf')
408  {
409  print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"), 'contract').'</a>';
410  } else {
411  print img_object($langs->trans("PreviewNotAvailable"), 'generic');
412  }
413  print '</td>';
414 
415  print "</tr>\n";
416  }
417  }
418  }
419  }
420  }
421  }
422  }
423 }
424 
425 print '</table>';
426 print "<br>";
427 
428 print dol_get_fiche_end();
429 
430 // End of page
431 llxFooter();
432 $db->close();
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
delDocumentModel($name, $type)
Delete document model used by doc generator.
Definition: admin.lib.php:1748
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
member_admin_prepare_head()
Return array head with list of tabs to view object informations.
Definition: member.lib.php:167
dolibarr_set_const($db, $name, $value, $type= 'chaine', $visible=0, $note= '', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
Definition: admin.lib.php:575
addDocumentModel($name, $type, $label= '', $description= '')
Add document model used by doc generator.
Definition: admin.lib.php:1717
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
llxHeader()
Empty header.
Definition: wrapper.php:45
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
Class to manage generation of HTML components Only common components must be here.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
dol_strlen($string, $stringencoding= 'UTF-8')
Make a strlen call.
dolibarr_del_const($db, $name, $entity=1)
Effacement d&#39;une constante dans la base de donnees.
Definition: admin.lib.php:499
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it&#39;s its name (generic function)
form_constantes($tableau, $strictw3c=0, $helptext= '')
Show array with constants to edit.
Definition: admin.lib.php:1479
img_object($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
print $_SERVER["PHP_SELF"]
Edit parameters.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
Definition: index.php:89
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...
newToken()
Return the value of token currently saved into session with name &#39;newtoken&#39;.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
llxFooter()
Empty footer.
Definition: wrapper.php:59