30 require
'../../../main.inc.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
32 require_once DOL_DOCUMENT_ROOT.
'/compta/paiement/class/paiement.class.php';
33 require_once DOL_DOCUMENT_ROOT.
'/compta/paiement/cheque/class/remisecheque.class.php';
34 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
37 $langs->loadLangs(array(
'banks',
'categories',
'bills',
'companies',
'compta'));
41 $action =
GETPOST(
'action',
'aZ09');
42 $confirm =
GETPOST(
'confirm',
'alpha');
45 $fieldname = (!empty($ref) ?
'ref' :
'rowid');
46 if ($user->socid) $socid = $user->socid;
47 $result =
restrictedArea($user,
'cheque', $id,
'bordereau_cheque',
'',
'fk_user_author', $fieldname);
49 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
50 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
52 if (!$sortorder) $sortorder =
"ASC";
53 if (!$sortfield) $sortfield =
"b.dateo,b.rowid";
54 if (empty($page) || $page == -1) { $page = 0; }
55 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
56 $offset = $limit * $page;
58 $dir = $conf->bank->dir_output.
'/checkdeposits/';
60 $filteraccountid =
GETPOST(
'accountid',
'int');
69 if ($action ==
'setdate' && $user->rights->banque->cheque)
71 $result = $object->fetch(
GETPOST(
'id',
'int'));
75 $date =
dol_mktime(0, 0, 0, $_POST[
'datecreate_month'], $_POST[
'datecreate_day'], $_POST[
'datecreate_year']);
77 $result = $object->set_date($user, $date);
87 if ($action ==
'setrefext' && $user->rights->banque->cheque)
89 $result = $object->fetch(
GETPOST(
'id',
'int'));
94 $result = $object->setValueFrom(
'ref_ext', $ref_ext,
'', null,
'text',
'', $user,
'CHECKDEPOSIT_MODIFY');
104 if ($action ==
'setref' && $user->rights->banque->cheque)
106 $result = $object->fetch(
GETPOST(
'id',
'int'));
111 $result = $object->set_number($user, $ref);
121 if ($action ==
'create' && $_POST[
"accountid"] > 0 && $user->rights->banque->cheque)
123 if (is_array($_POST[
'toRemise']))
125 $result = $object->create($user, $_POST[
"accountid"], 0, $_POST[
'toRemise']);
128 if ($object->statut == 1)
130 $object->fetch($object->id);
132 $outputlangs = $langs;
134 if ($conf->global->MAIN_MULTILANGS && empty($newlang) && !empty($_REQUEST[
'lang_id'])) $newlang = $_REQUEST[
'lang_id'];
136 if (!empty($newlang))
139 $outputlangs->setDefaultLang($newlang);
141 $result = $object->generatePdf($_POST[
"model"], $outputlangs);
144 header(
"Location: ".
$_SERVER[
"PHP_SELF"].
"?id=".$object->id);
155 if ($action ==
'remove' && $id > 0 &&
GETPOST(
"lineid",
'int') > 0 && $user->rights->banque->cheque)
158 $result = $object->removeCheck(
GETPOST(
"lineid",
"int"));
161 header(
"Location: ".
$_SERVER[
"PHP_SELF"].
"?id=".$object->id);
168 if ($action ==
'confirm_delete' && $confirm ==
'yes' && $user->rights->banque->cheque)
171 $result = $object->delete();
174 header(
"Location: index.php");
181 if ($action ==
'confirm_validate' && $confirm ==
'yes' && $user->rights->banque->cheque)
183 $result = $object->fetch($id);
184 $result = $object->validate($user);
188 $outputlangs = $langs;
190 if ($conf->global->MAIN_MULTILANGS && empty($newlang) && !empty($_REQUEST[
'lang_id'])) $newlang = $_REQUEST[
'lang_id'];
192 if (!empty($newlang))
195 $outputlangs->setDefaultLang($newlang);
197 $result = $object->generatePdf(
GETPOST(
'model'), $outputlangs);
199 header(
"Location: ".
$_SERVER[
"PHP_SELF"].
"?id=".$object->id);
206 if ($action ==
'confirm_reject_check' && $confirm ==
'yes' && $user->rights->banque->cheque)
209 $rejected_check =
GETPOST(
'bankid',
'int');
212 $paiement_id = $object->rejectCheck($rejected_check, $reject_date);
213 if ($paiement_id > 0)
215 setEventMessages($langs->trans(
"CheckRejectedAndInvoicesReopened"), null,
'mesgs');
225 if ($action ==
'builddoc' && $user->rights->banque->cheque)
227 $result = $object->fetch($id);
232 $outputlangs = $langs;
234 if ($conf->global->MAIN_MULTILANGS && empty($newlang) && !empty($_REQUEST[
'lang_id'])) $newlang = $_REQUEST[
'lang_id'];
236 if (!empty($newlang))
239 $outputlangs->setDefaultLang($newlang);
241 $result = $object->generatePdf($_POST[
"model"], $outputlangs);
247 header(
'Location: '.
$_SERVER[
"PHP_SELF"].
'?id='.$object->id.(empty($conf->global->MAIN_JUMP_TAG) ?
'' :
'#builddoc'));
251 elseif ($action ==
'remove_file' && $user->rights->banque->cheque)
253 if ($object->fetch($id) > 0)
255 include_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
257 $langs->load(
"other");
259 $file = $dir.get_exdir($object->ref, 0, 1, 0, $object,
'cheque').GETPOST(
'file');
274 $filteraccountid = 0;
277 $title = $langs->trans(
"Cheques").
" - ".$langs->trans(
"Card");
281 $form =
new Form($db);
285 if ($action ==
'new')
289 $head[$h][0] =
$_SERVER[
"PHP_SELF"].
'?action=new';
290 $head[$h][1] = $langs->trans(
"MenuChequeDeposits");
296 $result = $object->fetch($id, $ref);
304 $head[$h][0] =
$_SERVER[
"PHP_SELF"].
'?id='.$object->id;
305 $head[$h][1] = $langs->trans(
"CheckReceipt");
317 if ($action ==
'delete')
319 print $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
"DeleteCheckReceipt"), $langs->trans(
"ConfirmDeleteCheckReceipt"),
'confirm_delete',
'',
'', 1);
325 if ($action ==
'valide')
327 print $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
"ValidateCheckReceipt"), $langs->trans(
"ConfirmValidateCheckReceipt"),
'confirm_validate',
'',
'', 1);
333 if ($action ==
'reject_check')
335 $formquestion = array(
336 array(
'type' =>
'hidden',
'name' =>
'bankid',
'value' =>
GETPOST(
'lineid',
'int')),
337 array(
'type' =>
'date',
'name' =>
'rejectdate_',
'label' => $langs->trans(
"RejectCheckDate"),
'value' =>
dol_now())
339 print $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
"RejectCheck"), $langs->trans(
"ConfirmRejectCheck"),
'confirm_reject_check', $formquestion,
'', 1);
345 if ($action ==
'new')
354 print '<span class="opacitymedium">'.$langs->trans(
"SelectChequeTransactionAndGenerate").
'</span><br><br>'.
"\n";
356 print '<form class="nocellnopadd" action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
357 print '<input type="hidden" name="token" value="'.newToken().
'">';
358 print '<input type="hidden" name="action" value="new">';
362 print '<table class="border centpercent">';
365 print '<tr><td class="titlefieldcreate">'.$langs->trans(
"DateChequeReceived").
'</td><td>';
366 print $form->selectDate($filterdate,
'fd', 0, 0, 1,
'', 1, 1);
368 print '<tr><td>'.$langs->trans(
"BankAccount").
'</td><td>';
369 $form->select_comptes($filteraccountid,
'accountid', 0,
'courant <> 2', 1);
375 print '<div class="center">';
376 print '<input type="submit" class="button" name="filter" value="'.dol_escape_htmltag($langs->trans(
"ToFilter")).
'">';
377 if ($filterdate || $filteraccountid > 0)
380 print '<input type="submit" class="button" name="removefilter" value="'.dol_escape_htmltag($langs->trans(
"RemoveFilter")).
'">';
386 $sql =
"SELECT ba.rowid as bid, ba.label,";
387 $sql .=
" b.rowid as transactionid, b.label as transactionlabel, b.datec as datec, b.dateo as date, ";
388 $sql .=
" b.amount, b.emetteur, b.num_chq, b.banque,";
389 $sql .=
" p.rowid as paymentid, p.ref as paymentref";
390 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank as b";
391 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"paiement as p ON p.fk_bank = b.rowid";
392 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"bank_account as ba ON (b.fk_account = ba.rowid)";
393 $sql .=
" WHERE b.fk_type = 'CHQ'";
394 $sql .=
" AND ba.entity IN (".getEntity(
'bank_account').
")";
395 $sql .=
" AND b.fk_bordereau = 0";
396 $sql .=
" AND b.amount > 0";
397 if ($filterdate) $sql .=
" AND b.dateo = '".$db->idate($filterdate).
"'";
398 if ($filteraccountid > 0) $sql .=
" AND ba.rowid = ".((int) $filteraccountid);
399 $sql .= $db->order(
"b.dateo,b.rowid",
"ASC");
401 $resql = $db->query($sql);
405 while ($obj = $db->fetch_object(
$resql))
407 $accounts[$obj->bid] = $obj->label;
408 $lines[$obj->bid][$i][
"date"] = $db->jdate($obj->date);
409 $lines[$obj->bid][$i][
"amount"] = $obj->amount;
410 $lines[$obj->bid][$i][
"emetteur"] = $obj->emetteur;
411 $lines[$obj->bid][$i][
"numero"] = $obj->num_chq;
412 $lines[$obj->bid][$i][
"banque"] = $obj->banque;
413 $lines[$obj->bid][$i][
"id"] = $obj->transactionid;
414 $lines[$obj->bid][$i][
"ref"] = $obj->transactionid;
415 $lines[$obj->bid][$i][
"label"] = $obj->transactionlabel;
416 $lines[$obj->bid][$i][
"paymentid"] = $obj->paymentid;
417 $lines[$obj->bid][$i][
"paymentref"] = $obj->paymentref;
423 print '<div class="opacitymedium">'.$langs->trans(
"NoWaitingChecks").
'</div><br>';
427 foreach ($accounts as $bid => $account_label)
430 <script language="javascript" type="text/javascript">
431 jQuery(document).ready(function()
433 jQuery("#checkall_'.$bid.
'").click(function()
435 jQuery(".checkforremise_'.$bid.
'").prop(\'checked\', true);
437 jQuery("#checknone_'.$bid.
'").click(function()
439 jQuery(".checkforremise_'.$bid.
'").prop(\'checked\', false);
445 $num = $db->num_rows(
$resql);
446 print '<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
447 print '<input type="hidden" name="token" value="'.newToken().
'">';
448 print '<input type="hidden" name="action" value="create">';
449 print '<input type="hidden" name="accountid" value="'.$bid.
'">';
452 print '<div class="div-table-responsive-no-min">';
453 print '<table class="tagtable liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
455 print '<tr class="liste_titre">';
456 print
'<td>'.$langs->trans(
"DateChequeReceived").
'</td>'.
"\n";
457 print
'<td>'.$langs->trans(
"ChequeNumber").
"</td>\n";
458 print
'<td>'.$langs->trans(
"CheckTransmitter").
"</td>\n";
459 print
'<td>'.$langs->trans(
"Bank").
"</td>\n";
460 print
'<td>'.$langs->trans(
"Amount").
"</td>\n";
461 print
'<td class="center">'.$langs->trans(
"Payment").
"</td>\n";
462 print
'<td class="center">'.$langs->trans(
"LineRecord").
"</td>\n";
463 print
'<td class="center">'.$langs->trans(
"Select").
"<br>";
464 if ($conf->use_javascript_ajax) print
'<a href="#" id="checkall_'.$bid.
'">'.$langs->trans(
"All").
'</a> / <a href="#" id="checknone_'.$bid.
'">'.$langs->trans(
"None").
'</a>';
468 if (count($lines[$bid]))
470 foreach ($lines[$bid] as $lid => $value)
479 print
'<tr class="oddeven">';
480 print
'<td>'.dol_print_date($value[
"date"],
'day').
'</td>';
481 print
'<td>'.$value[
"numero"].
"</td>\n";
482 print
'<td>'.$value[
"emetteur"].
"</td>\n";
483 print
'<td>'.$value[
"banque"].
"</td>\n";
484 print
'<td class="right">'.price($value[
"amount"], 0, $langs, 1, -1, -1, $conf->currency).
'</td>';
487 print
'<td class="center">';
488 $paymentstatic->id = $value[
"paymentid"];
489 $paymentstatic->ref = $value[
"paymentref"];
490 if ($paymentstatic->id)
492 print $paymentstatic->getNomUrl(1);
498 print
'<td class="center">';
499 $accountlinestatic->id = $value[
"id"];
500 $accountlinestatic->ref = $value[
"ref"];
501 if ($accountlinestatic->id > 0) {
502 print $accountlinestatic->getNomUrl(1);
508 print
'<td class="center">';
509 print
'<input id="'.$value[
"id"].
'" class="flat checkforremise_'.$bid.
'" checked type="checkbox" name="toRemise[]" value="'.$value[
"id"].
'">';
519 print
'<div class="tabsAction">';
520 if ($user->rights->banque->cheque)
522 print
'<input type="submit" class="button" value="'.$langs->trans(
'NewCheckDepositOn', $account_label).
'">';
524 print
'<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans(
"NotEnoughPermissions").
'">'.$langs->trans(
'NewCheckDepositOn', $account_label).
'</a>';
532 $accountstatic =
new Account($db);
533 $accountstatic->fetch($object->account_id);
535 $linkback =
'<a href="'.DOL_URL_ROOT.
'/compta/paiement/cheque/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
538 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
541 print
'<div class="fichecenter">';
542 print
'<div class="underbanner clearboth"></div>';
545 print
'<table class="border centpercent">';
547 print
'<tr><td class="titlefield">';
549 print
'<table class="nobordernopadding" width="100%"><tr><td>';
550 print $langs->trans(
'Date');
552 if ($action !=
'editdate') print
'<td class="right"><a class="editfielda" href="'.$_SERVER[
"PHP_SELF"].
'?action=editdate&id='.$object->id.
'">'.
img_edit($langs->trans(
'SetDate'), 1).
'</a></td>';
553 print
'</tr></table>';
554 print
'</td><td colspan="2">';
555 if ($action ==
'editdate')
557 print
'<form name="setdate" action="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'" method="post">';
558 print
'<input type="hidden" name="token" value="'.newToken().
'">';
559 print
'<input type="hidden" name="action" value="setdate">';
560 print $form->selectDate($object->date_bordereau,
'datecreate_',
'',
'',
'',
"setdate");
561 print
'<input type="submit" class="button" value="'.$langs->trans(
'Modify').
'">';
564 print $object->date_bordereau ?
dol_print_date($object->date_bordereau,
'day') :
' ';
598 print
'<tr><td>'.$langs->trans(
'Account').
'</td><td colspan="2">';
599 print $accountstatic->getNomUrl(1);
603 print
'<tr><td>'.$langs->trans(
'NbOfCheques').
'</td><td colspan="2">';
604 print $object->nbcheque;
607 print
'<tr><td>'.$langs->trans(
'Total').
'</td><td colspan="2">';
608 print
price($object->amount);
615 print
'</table><br>';
621 $sql =
"SELECT b.rowid, b.rowid as ref, b.label, b.amount, b.num_chq, b.emetteur,";
622 $sql .=
" b.dateo as date, b.datec as datec, b.banque,";
623 $sql .=
" p.rowid as pid, p.ref as pref, ba.rowid as bid, p.statut";
624 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_account as ba";
625 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"bank as b ON (b.fk_account = ba.rowid)";
626 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"paiement as p ON p.fk_bank = b.rowid";
627 $sql .=
" WHERE ba.entity IN (".getEntity(
'bank_account').
")";
628 $sql .=
" AND b.fk_type= 'CHQ'";
629 $sql .=
" AND b.fk_bordereau = ".$object->id;
630 $sql .= $db->order($sortfield, $sortorder);
632 $resql = $db->query($sql);
635 $num = $db->num_rows(
$resql);
637 print
'<div class="div-table-responsive">';
638 print
'<table class="noborder centpercent">';
640 $param =
"&id=".$object->id;
642 print
'<tr class="liste_titre">';
657 while ($objp = $db->fetch_object(
$resql))
659 print
'<tr class="oddeven">';
660 print
'<td class="center">'.$i.
'</td>';
661 print
'<td class="center">'.dol_print_date($db->jdate($objp->date),
'day').
'</td>';
662 print
'<td class="center">'.($objp->num_chq ? $objp->num_chq :
' ').
'</td>';
663 print
'<td>'.dol_trunc($objp->emetteur, 24).
'</td>';
664 print
'<td>'.dol_trunc($objp->banque, 24).
'</td>';
665 print
'<td class="right">'.price($objp->amount).
'</td>';
667 print
'<td class="center">';
668 $paymentstatic->id = $objp->pid;
669 $paymentstatic->ref = $objp->pref;
670 if ($paymentstatic->id) {
671 print $paymentstatic->getNomUrl(1);
677 print
'<td class="center">';
678 $accountlinestatic->id = $objp->rowid;
679 $accountlinestatic->ref = $objp->ref;
680 if ($accountlinestatic->id > 0) {
681 print $accountlinestatic->getNomUrl(1);
687 print
'<td class="right">';
688 if ($object->statut == 0)
690 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=remove&lineid='.$objp->rowid.
'">'.
img_delete().
'</a>';
692 if ($object->statut == 1 && $objp->statut != 2)
694 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=reject_check&lineid='.$objp->rowid.
'">'.
img_picto($langs->trans(
"RejectCheck"),
'disable').
'</a>';
696 if ($objp->statut == 2)
698 print
' '.img_picto($langs->trans(
'CheckRejected'),
'statut8').
'</a>';
706 print
'<td colspan="8" class="opacitymedium">';
707 print $langs->trans(
"None");
714 if ($num > 0 && $i < ($object->nbcheque + 1)) {
716 $langs->load(
"errors");
717 print
info_admin($langs->trans(
"WarningSomeBankTransactionByChequeWereRemovedAfter"), 0, 0,
'warning');
736 print
'<div class="tabsAction">';
738 if ($user->socid == 0 && !empty($object->id) && $object->statut == 0 && $user->rights->banque->cheque)
740 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=valide&token='.
newToken().
'&sortfield='.$sortfield.
'&sortorder='.$sortorder.
'">'.$langs->trans(
'Validate').
'</a>';
743 if ($user->socid == 0 && !empty($object->id) && $user->rights->banque->cheque)
745 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=delete&token='.
newToken().
'&sortfield='.$sortfield.
'&sortorder='.$sortorder.
'">'.$langs->trans(
'Delete').
'</a>';
751 if ($action !=
'new')
753 if ($object->statut == 1)
756 $filedir = $dir.get_exdir($object->ref, 0, 1, 0, $object,
'checkdeposits');
757 $urlsource =
$_SERVER[
"PHP_SELF"].
"?id=".$object->id;
759 print $formfile->showdocuments(
'remisecheque', $filename, $filedir, $urlsource, 1, 1);
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.
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...
dol_now($mode= 'auto')
Return date for now.
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...
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with 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)
Class to manage payments of customer invoices.
dol_delete_file($file, $disableglob=0, $nophperrors=0, $nohook=0, $object=null, $allowdotdot=false, $indexdatabase=1)
Remove a file or several files with a mask.
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 translations.
dol_sanitizeFileName($str, $newstr= '_', $unaccent=1)
Clean a string to use it as a file name.
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.
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...
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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.
img_delete($titlealt= 'default', $other= 'class="pictodelete"', $morecss= '')
Show delete logo.
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin= '1', $morecss= '', $textfordropdown= '')
Show information for admin users or standard users.
Class to manage cheque delivery receipts.