29 require
'../../main.inc.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/lib/bank.lib.php';
31 require_once DOL_DOCUMENT_ROOT.
'/societe/class/societe.class.php';
32 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
33 require_once DOL_DOCUMENT_ROOT.
'/compta/sociales/class/chargesociales.class.php';
34 require_once DOL_DOCUMENT_ROOT.
'/compta/paiement/class/paiement.class.php';
35 require_once DOL_DOCUMENT_ROOT.
'/compta/tva/class/tva.class.php';
36 require_once DOL_DOCUMENT_ROOT.
'/fourn/class/paiementfourn.class.php';
37 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
38 require_once DOL_DOCUMENT_ROOT.
'/compta/paiement/cheque/class/remisecheque.class.php';
39 require_once DOL_DOCUMENT_ROOT.
'/compta/facture/class/facture.class.php';
40 require_once DOL_DOCUMENT_ROOT.
'/fourn/class/fournisseur.facture.class.php';
41 require_once DOL_DOCUMENT_ROOT.
'/don/class/paymentdonation.class.php';
42 require_once DOL_DOCUMENT_ROOT.
'/loan/class/paymentloan.class.php';
43 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/paymentvarious.class.php';
45 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
46 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
49 $langs->loadLangs(array(
"banks",
"categories",
"companies",
"bills",
"trips",
"donations",
"loan"));
51 $action =
GETPOST(
'action',
'aZ09');
54 $dvid =
GETPOST(
'dvid',
'alpha');
55 $numref =
GETPOST(
'num',
'alpha');
57 $brref =
GETPOST(
'brref',
'alpha');
58 $oldbankreceipt =
GETPOST(
'oldbankreceipt',
'alpha');
59 $newbankreceipt =
GETPOST(
'newbankreceipt',
'alpha');
62 $fieldid = (!empty($ref) ? $ref : $id);
63 $fieldname = isset($ref) ?
'ref' :
'rowid';
64 if ($user->socid) $socid = $user->socid;
65 $result =
restrictedArea($user,
'banque', $fieldid,
'bank_account',
'',
'', $fieldname);
67 if ($user->rights->banque->consolidate && $action ==
'dvnext' && !empty($dvid))
70 $al->datev_next($dvid);
73 if ($user->rights->banque->consolidate && $action ==
'dvprev' && !empty($dvid))
76 $al->datev_previous($dvid);
80 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
81 $sortfield =
GETPOST(
"sortfield",
'alpha');
82 $sortorder =
GETPOST(
"sortorder",
'alpha');
84 $pageplusone =
GETPOST(
"pageplusone",
'int');
85 if ($pageplusone) $page = $pageplusone - 1;
86 if (empty($page) || $page == -1) { $page = 0; }
87 $offset = $limit * $page;
88 $pageprev = $page - 1;
89 $pagenext = $page + 1;
90 if (!$sortorder) $sortorder =
"ASC";
91 if (!$sortfield) $sortfield =
"s.nom";
94 if ($id > 0 || !empty($ref))
96 $result = $object->fetch($id, $ref);
97 $account = $object->id;
102 $contextpage =
'banktransactionlist'.(empty($object->ref) ?
'' :
'-'.$object->id);
107 if ($_GET[
"rel"] ==
'prev')
110 $sql =
"SELECT DISTINCT(b.num_releve) as num";
111 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
112 $sql .=
" WHERE b.num_releve < '".$db->escape($numref).
"'";
113 $sql .=
" AND b.fk_account = ".$object->id;
114 $sql .=
" ORDER BY b.num_releve DESC";
116 dol_syslog(
"htdocs/compta/bank/releve.php", LOG_DEBUG);
117 $resql = $db->query($sql);
120 $numrows = $db->num_rows(
$resql);
123 $obj = $db->fetch_object(
$resql);
128 } elseif ($_GET[
"rel"] ==
'next')
131 $sql =
"SELECT DISTINCT(b.num_releve) as num";
132 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
133 $sql .=
" WHERE b.num_releve > '".$db->escape($numref).
"'";
134 $sql .=
" AND b.fk_account = ".$object->id;
135 $sql .=
" ORDER BY b.num_releve ASC";
137 dol_syslog(
"htdocs/compta/bank/releve.php", LOG_DEBUG);
138 $resql = $db->query($sql);
141 $numrows = $db->num_rows(
$resql);
144 $obj = $db->fetch_object(
$resql);
155 $sql =
"SELECT b.rowid, b.dateo as do, b.datev as dv,";
156 $sql .=
" b.amount, b.label, b.rappro, b.num_releve, b.num_chq, b.fk_type,";
157 $sql .=
" b.fk_bordereau,";
159 $sql .=
" ba.rowid as bankid, ba.ref as bankref, ba.label as banklabel";
160 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_account as ba";
161 $sql .=
", ".MAIN_DB_PREFIX.
"bank as b";
162 $sql .=
' LEFT JOIN '.MAIN_DB_PREFIX.
'bordereau_cheque as bc ON bc.rowid=b.fk_bordereau';
163 $sql .=
" WHERE b.num_releve='".$db->escape($numref).
"'";
164 if (empty($numref)) $sql .=
" OR b.num_releve is null";
165 $sql .=
" AND b.fk_account = ".$object->id;
166 $sql .=
" AND b.fk_account = ba.rowid";
167 $sql .= $db->order(
"b.datev, b.datec",
"ASC");
169 $sqlrequestforbankline = $sql;
177 if ($action ==
'confirm_editbankreceipt' && !empty($oldbankreceipt) && !empty($newbankreceipt))
180 $sqlupdate =
'UPDATE '.MAIN_DB_PREFIX.
'bank SET num_releve = "'.$db->escape($newbankreceipt).
'" WHERE num_releve = "'.$db->escape($oldbankreceipt).
'" AND fk_account = '.$id;
181 $result = $db->query($sqlupdate);
192 $title = $langs->trans(
"FinancialAccount").
' - '.$langs->trans(
"AccountStatements");
196 $form =
new Form($db);
197 $societestatic =
new Societe($db);
202 $paymentvatstatic =
new TVA($db);
203 $bankstatic =
new Account($db);
212 if (!empty($contextpage) && $contextpage !=
$_SERVER[
"PHP_SELF"]) $param .=
'&contextpage='.$contextpage;
213 if ($limit > 0 && $limit != $conf->liste_limit) $param .=
'&limit='.$limit;
214 if ($id > 0) $param .=
'&id='.urlencode($id);
223 $sql =
"SELECT DISTINCT(b.num_releve) as numr";
224 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
225 $sql .=
" WHERE b.fk_account = ".$object->id;
226 $sql .= $db->order($sortfield, $sortorder);
229 $nbtotalofrecords =
'';
230 if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
232 $result = $db->query($sql);
233 $nbtotalofrecords = $db->num_rows($result);
236 $sql .= $db->plimit($conf->liste_limit + 1, $offset);
238 $result = $db->query($sql);
241 $numrows = $db->num_rows($result);
248 $linkback =
'<a href="'.DOL_URL_ROOT.
'/compta/bank/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
252 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref,
'', 0,
'',
'', 1);
257 print '<div class="tabsAction">';
259 if ($object->canBeConciliated() > 0) {
261 if ($user->rights->banque->consolidate) {
262 print '<a class="butAction" href="'.DOL_URL_ROOT.
'/compta/bank/bankentries_list.php?action=reconcile&sortfield=b.datev,b.dateo,b.rowid&sortorder=asc,asc,asc&search_conciliated=0&search_account='.$id.$param.
'">'.$langs->trans(
"Conciliate").
'</a>';
264 print '<a class="butActionRefused classfortooltip" title="'.$langs->trans(
"NotEnoughPermissions").
'" href="#">'.$langs->trans(
"Conciliate").
'</a>';
271 print_barre_liste(
'', $page,
$_SERVER[
"PHP_SELF"],
"&account=".$object->id, $sortfield, $sortorder,
'', $numrows, $totalnboflines,
'');
273 print '<form name="aaa" action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
274 print '<input type="hidden" name="token" value="'.newToken().
'">';
275 print '<input type="hidden" name="action" value="confirm_editbankreceipt">';
276 print '<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
277 print '<input type="hidden" name="account" value="'.$object->id.
'">';
278 print '<input type="hidden" name="page" value="'.$page.
'">';
280 print '<table class="noborder centpercent">';
281 print '<tr class="liste_titre">';
282 print '<td>'.$langs->trans(
"Ref").
'</td>';
283 print '<td class="right">'.$langs->trans(
"InitialBankBalance").
'</td>';
284 print '<td class="right">'.$langs->trans(
"EndBankBalance").
'</td>';
288 $balancestart = array();
291 while ($i < min($numrows, $conf->liste_limit))
293 $objp = $db->fetch_object($result);
295 if (!isset($objp->numr))
299 print '<tr class="oddeven">';
301 if ($action !=
'editbankreceipt' || $objp->numr != $brref)
303 print '<a href="releve.php?num='.$objp->numr.
'&account='.$object->id.
'">'.$objp->numr.
'</a>';
305 print '<input type="hidden" name="oldbankreceipt" value="'.$objp->numr.
'">';
306 print '<input type="text" name="newbankreceipt" value="'.$objp->numr.
'">';
307 print '<input type="submit" class="button" name="actionnewbankreceipt" value="'.$langs->trans(
"Rename").
'">';
308 print '<input type="submit" class="button button-cancel" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
313 $sql =
"SELECT sum(b.amount) as amount";
314 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
315 $sql .=
" WHERE b.num_releve < '".$db->escape($objp->numr).
"'";
316 $sql .=
" AND b.fk_account = ".$object->id;
317 $resql = $db->query($sql);
320 $obj = $db->fetch_object(
$resql);
321 $balancestart[$objp->numr] = $obj->amount;
324 print '<td class="right">'.price($balancestart[$objp->numr],
'', $langs, 1, -1, -1, $conf->currency).
'</td>';
327 $sql =
"SELECT sum(b.amount) as amount";
328 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
329 $sql .=
" WHERE b.num_releve = '".$db->escape($objp->numr).
"'";
330 $sql .=
" AND b.fk_account = ".$object->id;
331 $resql = $db->query($sql);
334 $obj = $db->fetch_object(
$resql);
335 $content[$objp->numr] = $obj->amount;
338 print '<td class="right">'.price(($balancestart[$objp->numr] + $content[$objp->numr]),
'', $langs, 1, -1, -1, $conf->currency).
'</td>';
340 print '<td class="center">';
341 if ($user->rights->banque->consolidate && $action !=
'editbankreceipt') {
342 print '<a href="'.$_SERVER[
"PHP_SELF"].
'?account='.$object->id.($page > 0 ?
'&page='.$page :
'').
'&action=editbankreceipt&brref='.$objp->numr.
'">'.
img_edit().
'</a>';
368 $morehtmlright .=
'<div class="pagination"><ul>';
369 $morehtmlright .=
'<li class="pagination"><a class="paginationnext" href="'.$_SERVER[
"PHP_SELF"].
'?rel=prev&num='.$numref.
'&ve='.$ve.
'&account='.$object->id.
'"><i class="fa fa-chevron-left" title="'.
dol_escape_htmltag($langs->trans(
"Previous")).
'"></i></a></li>';
370 $morehtmlright .=
'<li class="pagination"><span class="active">'.$langs->trans(
"AccountStatement").
" ".$numref.
'</span></li>';
371 $morehtmlright .=
'<li class="pagination"><a class="paginationnext" href="'.$_SERVER[
"PHP_SELF"].
'?rel=next&num='.$numref.
'&ve='.$ve.
'&account='.$object->id.
'"><i class="fa fa-chevron-right" title="'.
dol_escape_htmltag($langs->trans(
"Next")).
'"></i></a></li>';
372 $morehtmlright .=
'</ul></div>';
374 $title = $langs->trans(
"AccountStatement").
' '.$numref.
' - '.$langs->trans(
"BankAccount").
' '.$object->getNomUrl(1,
'receipts');
378 print "<form method=\"post\" action=\"releve.php\">";
379 print '<input type="hidden" name="token" value="'.newToken().
'">';
380 print '<input type="hidden" name="action" value="add">';
382 print '<div class="div-table-responsive">';
383 print '<table class="noborder centpercent">';
384 print '<tr class="liste_titre">';
385 print '<td class="center">'.$langs->trans(
"DateOperationShort").
'</td>';
386 print '<td class="center">'.$langs->trans(
"DateValueShort").
'</td>';
387 print '<td>'.$langs->trans(
"Type").
'</td>';
388 print '<td>'.$langs->trans(
"Description").
'</td>';
389 print '<td class="right" width="60">'.$langs->trans(
"Debit").
'</td>';
390 print '<td class="right" width="60">'.$langs->trans(
"Credit").
'</td>';
391 print '<td class="right">'.$langs->trans(
"Balance").
'</td>';
392 print '<td> </td>';
396 $sql =
"SELECT sum(b.amount) as amount";
397 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
398 $sql .=
" WHERE b.num_releve < '".$db->escape($numref).
"'";
399 $sql .=
" AND b.fk_account = ".$object->id;
401 $resql = $db->query($sql);
404 $obj = $db->fetch_object(
$resql);
405 $total = $obj->amount;
410 $sql = $sqlrequestforbankline;
412 $result = $db->query($sql);
415 $numrows = $db->num_rows($result);
419 print '<tr class="oddeven"><td colspan="3"></td>';
420 print '<td colspan="3"><b>'.$langs->trans(
"InitialBankBalance").
" :</b></td>";
421 print '<td class="right"><b>'.price($total).
'</b></td><td> </td>';
424 while ($i < $numrows)
426 $objp = $db->fetch_object($result);
427 $total = $total + $objp->amount;
429 print '<tr class="oddeven">';
432 print '<td class="nowrap center">'.dol_print_date($db->jdate($objp->do),
"day").
'</td>';
435 print '<td valign="center" class="center nowrap">';
437 print '<a class="ajax reposition" href="'.$_SERVER[
'PHP_SELF'].
'?action=dvprev&num='.$numref.
'&account='.$object->id.
'&dvid='.$objp->rowid.
'">';
439 print '<a class="ajax reposition" href="'.$_SERVER[
'PHP_SELF'].
'?action=dvnext&num='.$numref.
'&account='.$object->id.
'&dvid='.$objp->rowid.
'">';
444 if ($objp->fk_type ==
'SOLD') {
445 $type_label =
' ';
447 $type_label = ($langs->trans(
"PaymentTypeShort".$objp->fk_type) !=
"PaymentTypeShort".$objp->fk_type) ? $langs->trans(
"PaymentTypeShort".$objp->fk_type) : $objp->fk_type;
450 if ($objp->fk_bordereau > 0) {
451 $remisestatic->id = $objp->fk_bordereau;
452 $remisestatic->ref = $objp->ref;
453 $link =
' '.$remisestatic->getNomUrl(1);
455 print '<td class="nowrap">'.$type_label.
' '.($objp->num_chq ? $objp->num_chq :
'').$link.
'</td>';
458 print '<td valign="center">';
459 print '<a href="'.DOL_URL_ROOT.
'/compta/bank/line.php?rowid='.$objp->rowid.
'&account='.$object->id.
'">';
461 preg_match(
'/\((.+)\)/i', $objp->label, $reg);
462 if ($reg[1] && $langs->trans($reg[1]) != $reg[1])
print $langs->trans($reg[1]);
463 else print $objp->label;
470 $links = $object->get_url($objp->rowid);
471 foreach ($links as $key=>$val)
473 if (!$newline)
print ' - ';
475 if ($links[$key][
'type'] ==
'payment')
477 $paymentstatic->id = $links[$key][
'url_id'];
478 $paymentstatic->ref = $langs->trans(
"Payment");
479 print ' '.$paymentstatic->getNomUrl(1);
481 } elseif ($links[$key][
'type'] ==
'payment_supplier')
483 $paymentsupplierstatic->id = $links[$key][
'url_id'];
484 $paymentsupplierstatic->ref = $langs->trans(
"Payment");
485 print ' '.$paymentsupplierstatic->getNomUrl(1);
487 } elseif ($links[$key][
'type'] ==
'payment_sc')
489 print '<a href="'.DOL_URL_ROOT.
'/compta/payment_sc/card.php?id='.$links[$key][
'url_id'].
'">';
490 print ' '.img_object($langs->trans(
'ShowPayment'),
'payment').
' ';
491 print $langs->trans(
"SocialContributionPayment");
494 } elseif ($links[$key][
'type'] ==
'payment_vat')
496 $paymentvatstatic->id = $links[$key][
'url_id'];
497 $paymentvatstatic->ref = $langs->trans(
"Payment");
498 print ' '.$paymentvatstatic->getNomUrl(1);
499 } elseif ($links[$key][
'type'] ==
'payment_salary')
501 print '<a href="'.DOL_URL_ROOT.
'/salaries/card.php?id='.$links[$key][
'url_id'].
'">';
502 print ' '.img_object($langs->trans(
'ShowPayment'),
'payment').
' ';
503 print $langs->trans(
"Payment");
506 } elseif ($links[$key][
'type'] ==
'payment_donation')
508 $paymentdonationstatic->id = $links[$key][
'url_id'];
509 $paymentdonationstatic->ref = $langs->trans(
"Payment");
510 print ' '.$paymentdonationstatic->getNomUrl(1);
512 } elseif ($links[$key][
'type'] ==
'payment_loan')
514 $paymentloanstatic->id = $links[$key][
'url_id'];
515 $paymentloanstatic->ref = $langs->trans(
"Payment");
516 print ' '.$paymentloanstatic->getNomUrl(1);
518 } elseif ($links[$key][
'type'] ==
'payment_various')
520 $paymentvariousstatic->id = $links[$key][
'url_id'];
521 $paymentvariousstatic->ref = $langs->trans(
"Payment");
522 print ' '.$paymentvariousstatic->getNomUrl(1);
524 } elseif ($links[$key][
'type'] ==
'banktransfert') {
526 if ($objp->amount > 0)
528 $banklinestatic->fetch($links[$key][
'url_id']);
529 $bankstatic->id = $banklinestatic->fk_account;
530 $bankstatic->label = $banklinestatic->bank_account_label;
531 print ' ('.$langs->trans(
"from").
' ';
532 print $bankstatic->getNomUrl(1,
'transactions');
533 print ' '.$langs->trans(
"toward").
' ';
534 $bankstatic->id = $objp->bankid;
535 $bankstatic->label = $objp->bankref;
536 print $bankstatic->getNomUrl(1,
'');
539 $bankstatic->id = $objp->bankid;
540 $bankstatic->label = $objp->bankref;
541 print ' ('.$langs->trans(
"from").
' ';
542 print $bankstatic->getNomUrl(1,
'');
543 print ' '.$langs->trans(
"toward").
' ';
544 $banklinestatic->fetch($links[$key][
'url_id']);
545 $bankstatic->id = $banklinestatic->fk_account;
546 $bankstatic->label = $banklinestatic->bank_account_label;
547 print $bankstatic->getNomUrl(1,
'transactions');
550 } elseif ($links[$key][
'type'] ==
'company') {
551 $societestatic->id = $links[$key][
'url_id'];
552 $societestatic->name = $links[$key][
'label'];
553 print $societestatic->getNomUrl(1,
'company', 24);
555 } elseif ($links[$key][
'type'] ==
'member') {
556 print '<a href="'.DOL_URL_ROOT.
'/adherents/card.php?rowid='.$links[$key][
'url_id'].
'">';
558 print $links[$key][
'label'];
561 } elseif ($links[$key][
'type'] ==
'user') {
562 print '<a href="'.DOL_URL_ROOT.
'/user/card.php?id='.$links[$key][
'url_id'].
'">';
564 print $links[$key][
'label'];
567 } elseif ($links[$key][
'type'] ==
'sc') {
568 print '<a href="'.DOL_URL_ROOT.
'/compta/sociales/card.php?id='.$links[$key][
'url_id'].
'">';
570 print $langs->trans(
"SocialContribution");
574 print '<a href="'.$links[$key][
'url'].$links[$key][
'url_id'].
'">';
575 print $links[$key][
'label'];
584 $sql =
"SELECT label";
585 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_categ as ct";
586 $sql .=
", ".MAIN_DB_PREFIX.
"bank_class as cl";
587 $sql .=
" WHERE ct.rowid = cl.fk_categ";
588 $sql .=
" AND ct.entity = ".$conf->entity;
589 $sql .=
" AND cl.lineid = ".$objp->rowid;
591 $resc = $db->query($sql);
594 $numc = $db->num_rows($resc);
596 if ($numc && !$newline)
print '<br>';
599 $objc = $db->fetch_object($resc);
600 print "<br>- <i>".$objc->label.
"</i>";
610 if ($objp->amount < 0)
612 $totald = $totald + abs($objp->amount);
613 print '<td class="nowrap right">'.price($objp->amount * -1).
"</td><td> </td>\n";
615 $totalc = $totalc + abs($objp->amount);
616 print '<td> </td><td class="nowrap right">'.price($objp->amount).
"</td>\n";
619 print '<td class="nowrap right">'.price(
price2num($total,
'MT')).
"</td>\n";
621 if ($user->rights->banque->modifier || $user->rights->banque->consolidate)
623 print '<td class="center"><a class="editfielda reposition" href="'.DOL_URL_ROOT.
'/compta/bank/line.php?rowid='.$objp->rowid.
'&account='.$object->id.
'&backtopage='.urlencode(
$_SERVER[
"PHP_SELF"].
'?account='.$object->id.
'&num='.$numref).
'">';
627 print "<td class=\"center\"> </td>";
636 print "\n".
'<tr class="liste_total"><td class="right" colspan="4">'.$langs->trans(
"Total").
" :</td><td class=\"right\">".
price($totald).
"</td><td class=\"right\">".
price($totalc).
"</td><td> </td><td> </td></tr>";
640 print "<td class=\"right\" colspan=\"3\"> </td><td colspan=\"3\"><b>".$langs->trans(
"EndBankBalance").
" :</b></td>";
641 print '<td class="right"><b>'.price(
price2num($total,
'MT')).
"</b></td><td> </td>";
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
img_edit($titlealt= 'default', $float=0, $other= '')
Show logo editer/modifier fiche.
Class to manage various payments.
bank_prepare_head(Account $object)
Prepare array with list of tabs.
account_statement_prepare_head($object, $num)
Prepare array with list of tabs.
Class to manage bank transaction lines.
Class to manage bank accounts.
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...
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.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
Class to manage third parties objects (customers, suppliers, prospects...)
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
price2num($amount, $rounding= '', $option=0)
Function that return a number with universal decimal format (decimal separator is '...
Class to manage payments of loans.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
Class to manage payments of customer invoices.
Class to manage members of a foundation.
img_object($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
restrictedArea($user, $features, $objectid=0, $tableandshare= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid', $isdraft=0)
Check permissions of a user to show a page and an object.
Class to manage payments of donations.
print $_SERVER["PHP_SELF"]
Edit parameters.
img_edit_add($titlealt= 'default', $other= '')
Show logo +.
img_edit_remove($titlealt= 'default', $other= '')
Show logo -.
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.
dol_print_date($time, $format= '', $tzoutput= 'auto', $outputlangs= '', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
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.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_get_fiche_end($notab=0)
Return tab footer of a card.
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.
Class to manage payments for supplier invoices.
Classe permettant la gestion des paiements des charges La tva collectee n'est calculee que sur les fa...
Class to manage cheque delivery receipts.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $keepmoretags= '', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...