31require
'../../main.inc.php';
32require_once DOL_DOCUMENT_ROOT.
'/compta/prelevement/class/bonprelevement.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/compta/facture/class/facture.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/salaries/class/salary.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/societe/class/societe.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/core/lib/bank.lib.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
38require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
39require_once DOL_DOCUMENT_ROOT.
'/core/lib/prelevement.lib.php';
40require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
43$langs->loadLangs(array(
'banks',
'categories',
'withdrawals',
'companies',
'bills'));
46$action =
GETPOST(
'action',
'aZ09');
47$massaction =
GETPOST(
'massaction',
'alpha');
48$toselect =
GETPOST(
'toselect',
'array');
49$mode =
GETPOST(
'mode',
'alpha') ?
GETPOST(
'mode',
'alpha') :
'real';
52$sourcetype =
GETPOST(
'sourcetype',
'aZ09');
53$format =
GETPOST(
'format',
'aZ09');
54$id_bankaccount =
GETPOST(
'id_bankaccount',
'int');
57$limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
58$page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
59if (empty($page) || $page == -1) {
62$offset = $limit * $page;
64$hookmanager->initHooks(array(
'directdebitcreatecard',
'globalcard'));
67$socid =
GETPOST(
'socid',
'int');
69 $socid = $user->socid;
71if ($type ==
'bank-transfer') {
72 $result =
restrictedArea($user,
'paymentbybanktransfer',
'',
'',
'');
74 $permissiontoread = $user->hasRight(
'paymentbybanktransfer',
'read');
75 $permissiontocreate = $user->hasRight(
'paymentbybanktransfer',
'create');
79 $permissiontoread = $user->hasRight(
'prelevement',
'bons',
'lire');
80 $permissiontocreate = $user->hasRight(
'prelevement',
'bons',
'creer');
93if (
GETPOST(
'cancel',
'alpha')) {
97$parameters = array(
'mode' => $mode,
'format' => $format,
'limit' => $limit,
'page' => $page,
'offset' => $offset);
98$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
103if (empty($reshook)) {
112 if ($action ==
'create' && $permissiontocreate) {
113 $default_account = ($type ==
'bank-transfer' ?
'PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT' :
'PRELEVEMENT_ID_BANKACCOUNT');
117 $res =
dolibarr_set_const($db, $default_account, $id_bankaccount,
'chaine', 0,
'', $conf->entity);
119 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
127 if (empty($bank->ics) && $type !==
'bank-transfer') {
128 $errormessage = str_replace(
'{url}', $bank->getNomUrl(1,
'',
'', -1, 1), $langs->trans(
"ErrorICSmissing",
'{url}'));
139 $result = $bprev->create(
getDolGlobalString(
'PRELEVEMENT_CODE_BANQUE'),
getDolGlobalString(
'PRELEVEMENT_CODE_GUICHET'), $mode, $format, $executiondate, 0, $type, 0, 0, $sourcetype);
143 if ($bprev->error || !empty($bprev->errors)) {
146 $langs->load(
"errors");
147 setEventMessages($langs->trans(
"ErrorsOnXLines", count($bprev->invoice_in_error)),
null,
'warnings');
150 if (!empty($bprev->invoice_in_error)) {
151 foreach ($bprev->invoice_in_error as $key => $val) {
152 $mesg .=
'<span class="warning">'.$val.
"</span><br>\n";
155 } elseif ($result == 0 || !empty($bprev->invoice_in_error)) {
159 if ($type !=
'bank-transfer') {
160 $mesg = $langs->trans(
"NoInvoiceCouldBeWithdrawed", $format);
162 if ($type ==
'bank-transfer' && $sourcetype !=
'salary') {
163 $mesg = $langs->trans(
"NoInvoiceCouldBeWithdrawedSupplier", $format);
165 if ($type ==
'bank-transfer' && $sourcetype ==
'salary') {
166 $mesg = $langs->trans(
"NoSalariesCouldBeWithdrawed", $format);
171 if (!empty($bprev->invoice_in_error)) {
172 $mesg .=
'<br>'.
"\n";
173 foreach ($bprev->invoice_in_error as $key => $val) {
174 $mesg .=
'<span class="warning">'.$val.
"</span><br>\n";
178 if ($type !=
'bank-transfer') {
179 $texttoshow = $langs->trans(
"DirectDebitOrderCreated",
'{s}');
180 $texttoshow = str_replace(
'{s}', $bprev->getNomUrl(1), $texttoshow);
183 $texttoshow = $langs->trans(
"CreditTransferOrderCreated",
'{s}');
184 $texttoshow = str_replace(
'{s}', $bprev->getNomUrl(1), $texttoshow);
188 header(
"Location: ".DOL_URL_ROOT.
'/compta/prelevement/card.php?id='.urlencode($bprev->id).
'&type='.urlencode($type));
194 $objectclass =
"BonPrelevement";
195 if ($type ==
'bank-transfer') {
196 $uploaddir = $conf->paymentbybanktransfer->dir_output;
198 $uploaddir = $conf->prelevement->dir_output;
200 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
208$form =
new Form($db);
210$thirdpartystatic =
new Societe($db);
211if ($type !=
'bank-transfer') {
212 $invoicestatic =
new Facture($db);
217$arrayofselected = is_array($toselect) ? $toselect : array();
219$arrayofmassactions = array(
221if (
GETPOST(
'nomassaction',
'int') || in_array($massaction, array(
'presend',
'predelete'))) {
222 $arrayofmassactions = array();
224$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
227 $langs->load(
"errors");
228 $modulenametoshow =
"Withdraw";
229 if ($type ==
'bank-transfer') {
230 $modulenametoshow =
"PaymentByBankTransfer";
232 setEventMessages($langs->trans(
"ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv($modulenametoshow)),
null,
'errors');
236$title = $langs->trans(
"NewStandingOrder");
237if ($type ==
'bank-transfer') {
238 $title = $langs->trans(
"NewPaymentByBankTransfer");
246 print
dol_get_fiche_head($head, (!GETPOSTISSET(
'sourcetype') ?
'invoice' :
'salary'), $langs->trans(
"Invoices"), -1, $bprev->picto);
253if ($sourcetype !=
'salary') {
254 $nb = $bprev->nbOfInvoiceToPay($type);
255 $pricetowithdraw = $bprev->SommeAPrelever($type);
257 $nb = $bprev->nbOfInvoiceToPay($type,
'salary');
258 $pricetowithdraw = $bprev->SommeAPrelever($type,
'salary');
263print
'<table class="border centpercent tableforfield">';
265$labeltoshow = $langs->trans(
"NbOfInvoiceToWithdraw");
266if ($type ==
'bank-transfer') {
267 $labeltoshow = $langs->trans(
"NbOfInvoiceToPayByBankTransfer");
269if ($sourcetype ==
'salary') {
270 $labeltoshow = $langs->trans(
"NbOfInvoiceToPayByBankTransferForSalaries");
273print
'<tr><td class="titlefield">'.$labeltoshow.
'</td>';
274print
'<td class="nowraponall">';
278print
'<tr><td>'.$langs->trans(
"AmountTotal").
'</td>';
279print
'<td class="amount nowraponall">';
280print
price($pricetowithdraw, 0, $langs, 1, -1, -1, $conf->currency);
287print
'<div class="tabsAction">'.
"\n";
289print
'<form action="'.$_SERVER[
'PHP_SELF'].
'" method="POST">';
290print
'<input type="hidden" name="action" value="create">';
291print
'<input type="hidden" name="token" value="'.newToken().
'">';
292print
'<input type="hidden" name="type" value="'.$type.
'">';
293print
'<input type="hidden" name="sourcetype" value="'.$sourcetype.
'">';
296 if ($pricetowithdraw) {
297 $title = $langs->trans(
'BankToReceiveWithdraw').
': ';
298 if ($type ==
'bank-transfer') {
299 $title = $langs->trans(
'BankToPayCreditTransfer').
': ';
301 print
'<span class="hideonsmartphone">'.$title.
'</span>';
304 $default_account = ($type ==
'bank-transfer' ?
'PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT' :
'PRELEVEMENT_ID_BANKACCOUNT');
306 print $form->select_comptes(
getDolGlobalInt($default_account),
'id_bankaccount', 0,
"courant=1", 0,
'', 0,
'widthcentpercentminusx maxwidth300', 1);
307 print
' ';
309 if (empty($executiondate)) {
311 if ($type !=
'bank-transfer') {
320 print $langs->trans(
'ExecutionDate').
' ';
321 $datere = $executiondate;
322 print $form->selectDate($datere,
're');
325 if ($mysoc->isInEEC()) {
326 $title = $langs->trans(
"CreateForSepa");
327 if ($type ==
'bank-transfer') {
328 $title = $langs->trans(
"CreateSepaFileForPaymentByBankTransfer");
331 if ($type !=
'bank-transfer') {
332 print
'<select name="format">';
333 print
'<option value="FRST"'.($format ==
'FRST' ?
' selected="selected"' :
'').
'>'.$langs->trans(
'SEPAFRST').
'</option>';
334 print
'<option value="RCUR"'.($format ==
'RCUR' ?
' selected="selected"' :
'').
'>'.$langs->trans(
'SEPARCUR').
'</option>';
337 print
'<input type="submit" class="butAction margintoponly maringbottomonly" value="'.$title.
'"/>';
339 $title = $langs->trans(
"CreateAll");
340 if ($type ==
'bank-transfer') {
341 $title = $langs->trans(
"CreateFileForPaymentByBankTransfer");
343 print
'<input type="hidden" name="format" value="ALL">'.
"\n";
344 print
'<input type="submit" class="butAction margintoponly maringbottomonly" value="'.$title.
'">'.
"\n";
347 if ($mysoc->isInEEC()) {
348 $title = $langs->trans(
"CreateForSepaFRST");
349 if ($type ==
'bank-transfer') {
350 $title = $langs->trans(
"CreateSepaFileForPaymentByBankTransfer");
352 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.$langs->trans(
"AmountMustBePositive").
'">'.$title.
"</a>\n";
354 if ($type !=
'bank-transfer') {
355 $title = $langs->trans(
"CreateForSepaRCUR");
356 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.$langs->trans(
"AmountMustBePositive").
'">'.$title.
"</a>\n";
359 $title = $langs->trans(
"CreateAll");
360 if ($type ==
'bank-transfer') {
361 $title = $langs->trans(
"CreateFileForPaymentByBankTransfer");
363 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#">'.$title.
"</a>\n";
367 $titlefortab = $langs->transnoentitiesnoconv(
"StandingOrders");
368 $title = $langs->trans(
"CreateAll");
369 if ($type ==
'bank-transfer') {
370 $titlefortab = $langs->transnoentitiesnoconv(
"PaymentByBankTransfers");
371 $title = $langs->trans(
"CreateFileForPaymentByBankTransfer");
373 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.dol_escape_htmltag($langs->transnoentitiesnoconv(
"NoInvoiceToWithdraw", $titlefortab, $titlefortab)).
'">';
394if ($sourcetype !=
'salary') {
395 $sql =
"SELECT f.ref, f.rowid, f.total_ttc, s.nom as name, s.rowid as socid,";
396 if ($type ==
'bank-transfer') {
397 $sql .=
" f.ref_supplier,";
399 $sql .=
" pd.rowid as request_row_id, pd.date_demande, pd.amount";
400 if ($type ==
'bank-transfer') {
401 $sql .=
" FROM ".MAIN_DB_PREFIX.
"facture_fourn as f,";
403 $sql .=
" FROM ".MAIN_DB_PREFIX.
"facture as f,";
405 $sql .=
" ".MAIN_DB_PREFIX.
"societe as s,";
406 $sql .=
" ".MAIN_DB_PREFIX.
"prelevement_demande as pd";
407 $sql .=
" WHERE s.rowid = f.fk_soc";
408 $sql .=
" AND f.entity IN (".getEntity(
'invoice').
")";
410 $sql .=
" AND f.fk_statut = ".Facture::STATUS_VALIDATED;
413 $sql .=
" AND f.total_ttc > 0";
414 $sql .=
" AND pd.traite = 0";
415 $sql .=
" AND pd.ext_payment_id IS NULL";
416 if ($type ==
'bank-transfer') {
417 $sql .=
" AND pd.fk_facture_fourn = f.rowid";
419 $sql .=
" AND pd.fk_facture = f.rowid";
422 $sql .=
" AND f.fk_soc = ".((int) $socid);
425 $sql =
"SELECT s.ref, s.rowid, s.amount, CONCAT(u.lastname, ' ', u.firstname) as name, u.rowid as uid,";
426 $sql .=
" pd.rowid as request_row_id, pd.date_demande, pd.amount";
427 $sql .=
" FROM ".MAIN_DB_PREFIX.
"salary as s,";
428 $sql .=
" ".MAIN_DB_PREFIX.
"user as u,";
429 $sql .=
" ".MAIN_DB_PREFIX.
"prelevement_demande as pd";
430 $sql .=
" WHERE s.fk_user = u.rowid";
431 $sql .=
" AND s.entity IN (".getEntity(
'salary').
")";
435 $sql .=
" AND s.amount > 0";
436 $sql .=
" AND pd.traite = 0";
437 $sql .=
" AND pd.ext_payment_id IS NULL";
438 $sql .=
" AND s.rowid = pd.fk_salary AND s.paye = ".Salary::STATUS_UNPAID;
439 $sql .=
" AND pd.traite = 0";
442$nbtotalofrecords =
'';
444 $result = $db->query($sql);
445 $nbtotalofrecords = $db->num_rows($result);
446 if (($page * $limit) > $nbtotalofrecords) {
453$sql .= $db->plimit($limit + 1, $offset);
455$resql = $db->query($sql);
457 $num = $db->num_rows($resql);
461 if ($limit > 0 && $limit != $conf->liste_limit) {
462 $param .=
'&limit='.((int) $limit);
465 $param .=
'&socid='.urlencode($socid);
468 $param .=
"&option=".urlencode($option);
471 print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">';
472 print
'<input type="hidden" name="token" value="'.newToken().
'">';
473 print
'<input type="hidden" name="page" value="'.$page.
'">';
474 if (!empty($limit)) {
475 print
'<input type="hidden" name="limit" value="'.$limit.
'"/>';
478 print
'<input type="hidden" name="type" value="'.$type.
'">';
480 $title = $langs->trans(
"InvoiceWaitingWithdraw");
482 if ($type ==
'bank-transfer') {
483 if ($sourcetype !=
'salary') {
484 $title = $langs->trans(
"InvoiceWaitingPaymentByBankTransfer");
486 $title = $langs->trans(
"SalaryWaitingWithdraw");
490 print_barre_liste($title, $page, $_SERVER[
'PHP_SELF'], $param,
'',
'', $massactionbutton, $num, $nbtotalofrecords, $picto, 0,
'',
'', $limit);
493 $tradinvoice =
"Invoice";
494 if ($type ==
'bank-transfer') {
495 if ($sourcetype !=
'salary') {
496 $tradinvoice =
"SupplierInvoice";
498 $tradinvoice =
"RefSalary";
502 print
'<div class="div-table-responsive-no-min">';
503 print
'<table class="noborder centpercent">';
504 print
'<tr class="liste_titre">';
507 if ($massactionbutton || $massaction) {
508 print
'<td align="center">'.$form->showCheckAddButtons(
'checkforselect', 1).
'</td>';
512 print
'<td>'.$langs->trans($tradinvoice).
'</td>';
514 if ($type ==
'bank-transfer' && $sourcetype !=
'salary') {
515 print
'<td>'.$langs->trans(
"RefSupplier").
'</td>';
518 if ($sourcetype !=
'salary') {
519 print
'<td>'.$langs->trans(
"ThirdParty").
'</td>';
521 print
'<td>'.$langs->trans(
"Employee").
'</td>';
524 print
'<td>'.$langs->trans(
"RIB").
'</td>';
526 if (empty($type) || $type ==
'direc-debit') {
527 print
'<td>'.$langs->trans(
"RUM").
'</td>';
529 print
'<td class="right">';
530 if ($sourcetype ==
'salary') {
531 print $langs->trans(
"Amount");
533 print $langs->trans(
"AmountTTC");
536 print
'<td class="right">'.$langs->trans(
"DateRequest").
'</td>';
539 if ($massactionbutton || $massaction) {
540 print
'<td align="center">'.$form->showCheckAddButtons(
'checkforselect', 1).
'</td>';
546 if ($sourcetype !=
'salary') {
547 require_once DOL_DOCUMENT_ROOT.
'/societe/class/companybankaccount.class.php';
549 require_once DOL_DOCUMENT_ROOT.
'/user/class/userbankaccount.class.php';
550 require_once DOL_DOCUMENT_ROOT.
'/salaries/class/salary.class.php';
553 while ($i < $num && $i < $limit) {
554 $obj = $db->fetch_object($resql);
555 if ($sourcetype !=
'salary') {
557 $bac->fetch(0, $obj->socid);
559 $invoicestatic->id = $obj->rowid;
560 $invoicestatic->ref = $obj->ref;
561 $invoicestatic->ref_supplier = $obj->ref_supplier;
564 $bac->fetch(0,
'', $obj->uid);
566 $salary =
new Salary($db);
567 $salary->fetch($obj->rowid);
569 print
'<tr class="oddeven">';
573 if ($massactionbutton || $massaction) {
574 print
'<td class="nowrap center">';
576 if (in_array($obj->request_row_id, $arrayofselected)) {
579 print
'<input id="cb'.$obj->request_row_id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->request_row_id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
585 print
'<td class="tdoverflowmax150">';
586 if ($sourcetype !=
'salary') {
587 print $invoicestatic->getNomUrl(1,
'withdraw');
589 print $salary->getNomUrl(1,
'withdraw');
593 if ($type ==
'bank-transfer' && $sourcetype !=
'salary') {
594 print
'<td class="tdoverflowmax100" title="'.dol_escape_htmltag($invoicestatic->ref_supplier).
'">';
600 if ($sourcetype !=
'salary') {
601 print
'<td class="tdoverflowmax100">';
602 $thirdpartystatic->fetch($obj->socid);
603 print $thirdpartystatic->getNomUrl(1,
'ban');
606 print
'<td class="tdoverflowmax100">';
607 $user->fetch($obj->uid);
608 print $user->getNomUrl(-1);
615 if (!empty($bac->iban) || !empty($bac->bic)) {
616 print $bac->iban.(($bac->iban && $bac->bic) ?
' / ' :
'').$bac->bic;
617 if ($bac->verif() <= 0) {
618 print
img_warning(
'Error on default bank number for IBAN : '.$langs->trans($bac->error));
621 print
img_warning($langs->trans(
"IBANNotDefined"));
624 print
img_warning($langs->trans(
"NoBankAccountDefined"));
629 if (empty($type) || $type ==
'direct-debit') {
631 $rumtoshow = $thirdpartystatic->display_rib(
'rum');
634 $format = $thirdpartystatic->display_rib(
'format');
635 if ($type !=
'bank-transfer') {
637 print
' ('.$format.
')';
641 print
img_warning($langs->trans(
"NoBankAccountDefined"));
647 print
'<td class="right amount">';
648 print
price($obj->amount, 0, $langs, 0, 0, -1, $conf->currency);
651 print
'<td class="right">';
656 if ($massactionbutton || $massaction) {
657 print
'<td class="nowrap center">';
659 if (in_array($obj->request_row_id, $arrayofselected)) {
662 print
'<input id="cb'.$obj->request_row_id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->request_row_id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
671 if ($type ==
'bank-transfer') {
674 if ($massactionbutton || $massaction) {
677 print
'<tr class="oddeven"><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"None").
'</span></td></tr>';
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).
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class to manage bank accounts.
Class to manage withdrawal receipts.
Class to manage bank accounts description of third parties.
Class to manage suppliers invoices.
Class to manage invoices.
Class to manage salary payments.
Class to manage third parties objects (customers, suppliers, prospects...)
Class to manage bank accounts description of users.
dol_time_plus_duree($time, $duration_value, $duration_unit, $ruleforendofmonth=0)
Add a delay to a date.
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...
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
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.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
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.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
bon_prelevement_prepare_head(BonPrelevement $object, $nbOfInvoices, $nbOfSalaryInvoice)
Return array head with list of tabs to view object informations.
prelevement_check_config($type='direct-debit')
Check need data to create standigns orders receipt file.
restrictedArea(User $user, $features, $object=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.