dolibarr  16.0.5
card.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2010-2016 Juanjo Menent <jmenent@2byte.es>
5  * Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
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 
27 require '../../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.'/core/lib/prelevement.lib.php';
29 require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/ligneprelevement.class.php';
30 require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/bonprelevement.class.php';
31 require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
32 
33 // Load translation files required by the page
34 $langs->loadLangs(array('banks', 'categories', 'bills', 'companies', 'withdrawals'));
35 
36 // Get supervariables
37 $action = GETPOST('action', 'aZ09');
38 $id = GETPOST('id', 'int');
39 $ref = GETPOST('ref', 'alpha');
40 $socid = GETPOST('socid', 'int');
41 $type = GETPOST('type', 'aZ09');
42 
43 // Load variable for pagination
44 $limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
45 $sortfield = GETPOST('sortfield', 'aZ09comma');
46 $sortorder = GETPOST('sortorder', 'aZ09comma');
47 $page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
48 if (empty($page) || $page == -1) {
49  $page = 0;
50 } // If $page is not defined, or '' or -1
51 $offset = $limit * $page;
52 $pageprev = $page - 1;
53 $pagenext = $page + 1;
54 
55 if (!$sortfield) {
56  $sortfield = 'pl.fk_soc';
57 }
58 if (!$sortorder) {
59  $sortorder = 'DESC';
60 }
61 
62 $object = new BonPrelevement($db);
63 
64 // Load object
65 include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
66 
67 $hookmanager->initHooks(array('directdebitprevcard', 'globalcard', 'directdebitprevlist'));
68 
69 $type = $object->type;
70 
71 if ($type == 'bank-transfer') {
72  $result = restrictedArea($user, 'paymentbybanktransfer', '', '', '');
73 } else {
74  $result = restrictedArea($user, 'prelevement', '', '', 'bons');
75 }
76 
77 
78 /*
79  * Actions
80  */
81 
82 $parameters = array('socid' => $socid);
83 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
84 if ($reshook < 0) {
85  setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
86 }
87 
88 if (empty($reshook)) {
89  if ($action == 'confirm_delete') {
90  $savtype = $object->type;
91  $res = $object->delete($user);
92  if ($res > 0) {
93  if ($savtype == 'bank-transfer') {
94  header("Location: ".DOL_URL_ROOT.'/compta/paymentbybanktransfer/index.php');
95  } else {
96  header("Location: ".DOL_URL_ROOT.'/compta/prelevement/index.php');
97  }
98  exit;
99  }
100  }
101 
102  if ($action == 'infotrans' && (($user->rights->prelevement->bons->send && $object->type != 'bank-transfer') || ($user->rights->paymentbybanktransfer->send && $object->type == 'bank-transfer'))) {
103  require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
104 
105  $dt = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int'));
106 
107  /*
108  if ($_FILES['userfile']['name'] && basename($_FILES['userfile']['name'],".ps") == $object->ref)
109  {
110  $dir = $conf->prelevement->dir_output.'/receipts';
111 
112  if (dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $dir . "/" . dol_unescapefile($_FILES['userfile']['name']),1) > 0)
113  {
114  $object->set_infotrans($user, $dt, GETPOST('methode','alpha'));
115  }
116 
117  header("Location: card.php?id=".$id);
118  exit;
119  }
120  else
121  {
122  dol_syslog("Fichier invalide",LOG_WARNING);
123  $mesg='BadFile';
124  }*/
125 
126  $error = $object->set_infotrans($user, $dt, GETPOST('methode', 'alpha'));
127 
128  if ($error) {
129  header("Location: card.php?id=".$id."&error=$error");
130  exit;
131  }
132  }
133 
134  // Set direct debit order to credited, create payment and close invoices
135  if ($action == 'infocredit' && (($user->rights->prelevement->bons->credit && $object->type != 'bank-transfer') || ($user->rights->paymentbybanktransfer->debit && $object->type == 'bank-transfer'))) {
136  $dt = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int'));
137 
138  if (($object->type != 'bank-transfer' && $object->statut == BonPrelevement::STATUS_CREDITED) || ($object->type == 'bank-transfer' && $object->statut == BonPrelevement::STATUS_DEBITED)) {
139  $error = 1;
140  setEventMessages('WithdrawalCantBeCreditedTwice', array(), 'errors');
141  } else {
142  $error = $object->set_infocredit($user, $dt);
143  }
144 
145  if ($error) {
146  setEventMessages($object->error, $object->errors, 'errors');
147  }
148  }
149 }
150 
151 
152 
153 /*
154  * View
155  */
156 
157 $form = new Form($db);
158 
159 llxHeader('', $langs->trans("WithdrawalsReceipts"));
160 
161 if ($id > 0 || $ref) {
162  $head = prelevement_prepare_head($object);
163  print dol_get_fiche_head($head, 'prelevement', $langs->trans("WithdrawalsReceipts"), -1, 'payment');
164 
165  if (GETPOST('error', 'alpha') != '') {
166  print '<div class="error">'.$object->getErrorString(GETPOST('error', 'alpha')).'</div>';
167  }
168 
169  $linkback = '<a href="'.DOL_URL_ROOT.'/compta/prelevement/orders_list.php?restore_lastsearch_values=1'.($object->type != 'bank-transfer' ? '' : '&type=bank-transfer').'">'.$langs->trans("BackToList").'</a>';
170 
171  dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref');
172 
173  print '<div class="fichecenter">';
174  print '<div class="underbanner clearboth"></div>';
175  print '<table class="border centpercent tableforfield">';
176 
177  print '<tr><td class="titlefieldcreate">'.$langs->trans("Date").'</td><td>'.dol_print_date($object->datec, 'day').'</td></tr>';
178 
179  print '<tr><td>'.$langs->trans("Amount").'</td><td><span class="amount">'.price($object->amount).'</span></td></tr>';
180 
181  // Status
182  /*
183  print '<tr><td>'.$langs->trans('Status').'</td>';
184  print '<td>'.$object->getLibStatut(1).'</td>';
185  print '</tr>';
186  */
187 
188  if (!empty($object->date_trans)) {
189  $muser = new User($db);
190  $muser->fetch($object->user_trans);
191 
192  print '<tr><td>'.$langs->trans("TransData").'</td><td>';
193  print dol_print_date($object->date_trans, 'day');
194  print ' &nbsp; <span class="opacitymedium">'.$langs->trans("By").'</span> '.$muser->getNomUrl(-1).'</td></tr>';
195  print '<tr><td>'.$langs->trans("TransMetod").'</td><td>';
196  print $object->methodes_trans[$object->method_trans];
197  print '</td></tr>';
198  }
199  if (!empty($object->date_credit)) {
200  print '<tr><td>'.$langs->trans('CreditDate').'</td><td>';
201  print dol_print_date($object->date_credit, 'day');
202  print '</td></tr>';
203  }
204 
205  print '</table>';
206 
207  print '<br>';
208 
209  print '<div class="underbanner clearboth"></div>';
210  print '<table class="border centpercent tableforfield">';
211 
212  $acc = new Account($db);
213  $result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
214 
215  print '<tr><td class="titlefieldcreate">';
216  $labelofbankfield = "BankToReceiveWithdraw";
217  if ($object->type == 'bank-transfer') {
218  $labelofbankfield = 'BankToPayCreditTransfer';
219  }
220  print $langs->trans($labelofbankfield);
221  print '</td>';
222  print '<td>';
223  if ($acc->id > 0) {
224  print $acc->getNomUrl(1);
225  }
226  print '</td>';
227  print '</tr>';
228 
229  print '<tr><td class="titlefieldcreate">';
230  $labelfororderfield = 'WithdrawalFile';
231  if ($object->type == 'bank-transfer') {
232  $labelfororderfield = 'CreditTransferFile';
233  }
234  print $langs->trans($labelfororderfield).'</td><td>';
235  $relativepath = 'receipts/'.$object->ref.'.xml';
236  $modulepart = 'prelevement';
237  if ($object->type == 'bank-transfer') {
238  $modulepart = 'paymentbybanktransfer';
239  }
240  print '<a data-ajax="false" href="'.DOL_URL_ROOT.'/document.php?type=text/plain&amp;modulepart='.$modulepart.'&amp;file='.urlencode($relativepath).'">'.$relativepath;
241  print img_picto('', 'download', 'class="paddingleft"');
242  print '</a>';
243  print '</td></tr>';
244 
245  // Other attributes
246  $parameters = array();
247  $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
248  print $hookmanager->resPrint;
249 
250  print '</table>';
251 
252  print '</div>';
253 
254  print dol_get_fiche_end();
255 
256 
257  $formconfirm = '';
258 
259  // Confirmation to delete
260  if ($action == 'delete') {
261  $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('Delete'), $langs->trans('ConfirmDeleteObject'), 'confirm_delete', '', 0, 1);
262  }
263 
264  // Call Hook formConfirm
265  /*$parameters = array('formConfirm' => $formconfirm);
266  $reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
267  if (empty($reshook)) $formconfirm.=$hookmanager->resPrint;
268  elseif ($reshook > 0) $formconfirm=$hookmanager->resPrint;*/
269 
270  // Print form confirm
271  print $formconfirm;
272 
273 
274  if (empty($object->date_trans) && $user->rights->prelevement->bons->send && $action == 'settransmitted') {
275  print '<form method="post" name="userfile" action="card.php?id='.$object->id.'" enctype="multipart/form-data">';
276  print '<input type="hidden" name="token" value="'.newToken().'">';
277  print '<input type="hidden" name="action" value="infotrans">';
278  print '<table class="noborder centpercent">';
279  print '<tr class="liste_titre">';
280  print '<td colspan="3">'.$langs->trans("NotifyTransmision").'</td></tr>';
281  print '<tr class="oddeven"><td>'.$langs->trans("TransData").'</td><td>';
282  print $form->selectDate('', '', '', '', '', "userfile", 1, 1);
283  print '</td></tr>';
284  print '<tr class="oddeven"><td>'.$langs->trans("TransMetod").'</td><td>';
285  print $form->selectarray("methode", $object->methodes_trans);
286  print '</td></tr>';
287  print '</table><br>';
288  print '<div class="center"><input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans("SetToStatusSent")).'"></div>';
289  print '</form>';
290  print '<br>';
291  }
292 
293  if (!empty($object->date_trans) && empty($object->date_credit) && $user->rights->prelevement->bons->credit && $action == 'setcredited') {
294  $btnLabel = ($object->type == 'bank-transfer') ? $langs->trans("ClassDebited") : $langs->trans("ClassCredited");
295  print '<form name="infocredit" method="post" action="card.php?id='.$object->id.'">';
296  print '<input type="hidden" name="token" value="'.newToken().'">';
297  print '<input type="hidden" name="action" value="infocredit">';
298  print '<table class="noborder centpercent">';
299  print '<tr class="liste_titre">';
300  print '<td colspan="3">'.$langs->trans("NotifyCredit").'</td></tr>';
301  print '<tr class="oddeven"><td>'.$langs->trans('CreditDate').'</td><td>';
302  print $form->selectDate(-1, '', '', '', '', "infocredit", 1, 1);
303  print '</td></tr>';
304  print '</table>';
305  print '<br><div class="center"><span class="opacitymedium">'.$langs->trans("ThisWillAlsoAddPaymentOnInvoice").'</span></div>';
306  print '<div class="center"><input type="submit" class="button" value="'.dol_escape_htmltag($btnLabel).'"></div>';
307  print '</form>';
308  print '<br>';
309  }
310 
311  // Actions
312  if ($action != 'settransmitted' && $action != 'setcredited') {
313  print "\n".'<div class="tabsAction">'."\n";
314  $parameters = array();
315  $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
316  if (empty($reshook)) {
317  if (empty($object->date_trans)) {
318  if ($object->type == 'bank-transfer') print dolGetButtonAction($langs->trans("SetToStatusSent"), '', 'default', 'card.php?action=settransmitted&token='.newToken().'&id='.$object->id, '', $user->rights->paymentbybanktransfer->send);
319  else print dolGetButtonAction($langs->trans("SetToStatusSent"), '', 'default', 'card.php?action=settransmitted&token='.newToken().'&id='.$object->id, '', $user->rights->prelevement->bons->send);
320  }
321  if (!empty($object->date_trans) && empty($object->date_credit)) {
322  if ($object->type == 'bank-transfer') print dolGetButtonAction($langs->trans("ClassDebited"), '', 'default', 'card.php?action=setcredited&token='.newToken().'&id='.$object->id, '', $user->rights->paymentbybanktransfer->debit);
323  else print dolGetButtonAction($langs->trans("ClassCredited"), '', 'default', 'card.php?action=setcredited&token='.newToken().'&id='.$object->id, '', $user->rights->prelevement->bons->credit);
324  }
325 
326  if ($object->type == 'bank-transfer') print dolGetButtonAction($langs->trans("Delete"), '', 'delete', 'card.php?action=delete&token='.newToken().'&id='.$object->id, '', $user->rights->paymentbybanktransfer->create);
327  else print dolGetButtonAction($langs->trans("Delete"), '', 'delete', 'card.php?action=delete&token='.newToken().'&id='.$object->id, '', $user->rights->prelevement->bons->creer);
328  }
329  print '</div>';
330  }
331 
332 
333  $ligne = new LignePrelevement($db);
334 
335  /*
336  * Lines into withdraw request
337  */
338  $sql = "SELECT pl.rowid, pl.statut, pl.amount,";
339  $sql .= " s.rowid as socid, s.nom as name";
340  $sql .= " FROM ".MAIN_DB_PREFIX."prelevement_lignes as pl";
341  $sql .= ", ".MAIN_DB_PREFIX."prelevement_bons as pb";
342  $sql .= ", ".MAIN_DB_PREFIX."societe as s";
343  $sql .= " WHERE pl.fk_prelevement_bons = ".((int) $id);
344  $sql .= " AND pl.fk_prelevement_bons = pb.rowid";
345  $sql .= " AND pb.entity = ".$conf->entity;
346  $sql .= " AND pl.fk_soc = s.rowid";
347  if ($socid) {
348  $sql .= " AND s.rowid = ".((int) $socid);
349  }
350  $sql .= $db->order($sortfield, $sortorder);
351 
352  // Count total nb of records
353  $nbtotalofrecords = '';
354  if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) {
355  $result = $db->query($sql);
356  $nbtotalofrecords = $db->num_rows($result);
357  if (($page * $limit) > $nbtotalofrecords) {
358  // if total resultset is smaller then paging size (filtering), goto and load page 0
359  $page = 0;
360  $offset = 0;
361  }
362  }
363 
364  $sql .= $db->plimit($limit + 1, $offset);
365 
366  $result = $db->query($sql);
367 
368  if ($result) {
369  $num = $db->num_rows($result);
370  $i = 0;
371 
372  $urladd = "&id=".urlencode($id);
373  if ($limit > 0 && $limit != $conf->liste_limit) {
374  $urladd .= '&limit='.urlencode($limit);
375  }
376 
377  print '<form method="get" action="'.$_SERVER ['PHP_SELF'].'" name="search_form">'."\n";
378  print '<input type="hidden" name="id" value="'.$id.'"/>';
379  print '<input type="hidden" name="socid" value="'.$socid.'"/>';
380  if (!empty($page)) {
381  print '<input type="hidden" name="page" value="'.$page.'"/>';
382  }
383  if (!empty($limit)) {
384  print '<input type="hidden" name="limit" value="'.$limit.'"/>';
385  }
386  if (!empty($sortfield)) {
387  print '<input type="hidden" name="sortfield" value="'.$sortfield.'"/>';
388  }
389  if (!empty($sortorder)) {
390  print '<input type="hidden" name="sortorder" value="'.$sortorder.'"/>';
391  }
392  print_barre_liste($langs->trans("Lines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '', 0, '', '', $limit);
393 
394  print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
395  print '<table class="noborder liste" width="100%" cellpadding="4">';
396  print '<tr class="liste_titre">';
397  print_liste_field_titre("Lines", $_SERVER["PHP_SELF"], "pl.rowid", '', $urladd);
398  print_liste_field_titre("ThirdParty", $_SERVER["PHP_SELF"], "s.nom", '', $urladd);
399  print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "pl.amount", "", $urladd, 'class="right"');
401  print "</tr>\n";
402 
403  $total = 0;
404 
405  while ($i < min($num, $limit)) {
406  $obj = $db->fetch_object($result);
407 
408  print '<tr class="oddeven">';
409 
410  // Status of line
411  print "<td>";
412  print '<a class="valignmiddle" href="'.DOL_URL_ROOT.'/compta/prelevement/line.php?id='.$obj->rowid.'&type='.$object->type.'&token='.newToken().'">';
413  print $ligne->LibStatut($obj->statut, 2);
414  print '<span class="paddingleft">'.$obj->rowid.'</span>';
415  print '</a></td>';
416 
417  $thirdparty = new Societe($db);
418  $thirdparty->fetch($obj->socid);
419  print '<td>';
420  print $thirdparty->getNomUrl(1);
421  print "</td>\n";
422 
423  print '<td class="right"><span class="amount">'.price($obj->amount)."</span></td>\n";
424 
425  print '<td class="right">';
426 
427  if ($obj->statut == 3) {
428  print '<b>'.$langs->trans("StatusRefused").'</b>';
429  } else {
430  if ($object->statut == BonPrelevement::STATUS_CREDITED) {
431  if ($obj->statut == 2) {
432  if ($user->rights->prelevement->bons->credit) {
433  //print '<a class="butActionDelete" href="line.php?action=rejet&id='.$obj->rowid.'">'.$langs->trans("StandingOrderReject").'</a>';
434  print '<a href="line.php?action=rejet&type='.$object->type.'&id='.$obj->rowid.'&token='.newToken().'">'.$langs->trans("StandingOrderReject").'</a>';
435  } else {
436  //print '<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans("NotAllowed").'">'.$langs->trans("StandingOrderReject").'</a>';
437  }
438  }
439  } else {
440  //print '<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans("NotPossibleForThisStatusOfWithdrawReceiptORLine").'">'.$langs->trans("StandingOrderReject").'</a>';
441  }
442  }
443 
444  print '</td></tr>';
445 
446  $total += $obj->amount;
447 
448  $i++;
449  }
450 
451  if ($num > 0) {
452  $total = price2num($total, 'MT');
453 
454  print '<tr class="liste_total">';
455  print '<td>'.$langs->trans("Total").'</td>';
456  print '<td>&nbsp;</td>';
457  print '<td class="right">';
458  if (empty($offset) && $num <= $limit) {
459  // If we have all record on same page, then the following test/warning can be done
460  if ($total != $object->amount) {
461  print img_warning($langs->trans("TotalAmountOfdirectDebitOrderDiffersFromSumOfLines"));
462  }
463  }
464  print price($total);
465  print "</td>\n";
466  print '<td>&nbsp;</td>';
467  print "</tr>\n";
468  }
469 
470  print "</table>";
471  print '</div>';
472  print '</form>';
473 
474  $db->free($result);
475  } else {
476  dol_print_error($db);
477  }
478 }
479 
480 // End of page
481 llxFooter();
482 $db->close();
Societe
Class to manage third parties objects (customers, suppliers, prospects...)
Definition: societe.class.php:48
restrictedArea
restrictedArea($user, $features, $objectid=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
Definition: security.lib.php:234
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:73
LignePrelevement
Class to manage withdrawals.
Definition: ligneprelevement.class.php:32
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
dol_print_error
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Definition: functions.lib.php:4844
img_warning
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
Definition: functions.lib.php:4521
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
dolGetButtonAction
dolGetButtonAction($label, $html='', $actionType='default', $url='', $id='', $userRight=1, $params=array())
Function dolGetButtonAction.
Definition: functions.lib.php:10450
dol_banner_tab
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
Definition: functions.lib.php:2046
price2num
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
Definition: functions.lib.php:5661
dol_print_date
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
Definition: functions.lib.php:2514
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3880
BonPrelevement
Class to manage withdrawal receipts.
Definition: bonprelevement.class.php:43
$formconfirm
$formconfirm
if ($action == 'delbookkeepingyear') {
Definition: listbyaccount.php:576
print_barre_liste
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
Definition: functions.lib.php:5257
dol_get_fiche_head
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
Definition: functions.lib.php:1822
newToken
newToken()
Return the value of token currently saved into session with name 'newtoken'.
Definition: functions.lib.php:10878
dol_get_fiche_end
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition: functions.lib.php:2018
User
Class to manage Dolibarr users.
Definition: user.class.php:44
GETPOSTISSET
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
Definition: functions.lib.php:386
print_liste_field_titre
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
Definition: functions.lib.php:5026
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
$parameters
$parameters
Actions.
Definition: card.php:78
price
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages.
Definition: functions.lib.php:5541
prelevement_prepare_head
prelevement_prepare_head(BonPrelevement $object)
Prepare array with list of tabs.
Definition: prelevement.lib.php:34
setEventMessages
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
Definition: functions.lib.php:8137
dol_mktime
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
Definition: functions.lib.php:2757
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:59
Account
Class to manage bank accounts.
Definition: account.class.php:38