32require
'../../main.inc.php';
33require_once DOL_DOCUMENT_ROOT.
'/compta/prelevement/class/bonprelevement.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/compta/facture/class/facture.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/salaries/class/salary.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/societe/class/societe.class.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/lib/bank.lib.php';
38require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
39require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
40require_once DOL_DOCUMENT_ROOT.
'/core/lib/prelevement.lib.php';
41require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
44$langs->loadLangs(array(
'banks',
'categories',
'withdrawals',
'companies',
'bills'));
47$action =
GETPOST(
'action',
'aZ09');
48$massaction =
GETPOST(
'massaction',
'alpha');
49$toselect =
GETPOST(
'toselect',
'array');
50$mode =
GETPOST(
'mode',
'alpha') ?
GETPOST(
'mode',
'alpha') :
'real';
53$sourcetype =
GETPOST(
'sourcetype',
'aZ09');
54$format =
GETPOST(
'format',
'aZ09');
60if (empty($page) || $page == -1) {
63$offset = $limit * $page;
65$hookmanager->initHooks(array(
'directdebitcreatecard',
'globalcard'));
70 $socid = $user->socid;
72if ($type ==
'bank-transfer') {
73 $result =
restrictedArea($user,
'paymentbybanktransfer',
'',
'',
'');
75 $permissiontoread = $user->hasRight(
'paymentbybanktransfer',
'read');
76 $permissiontocreate = $user->hasRight(
'paymentbybanktransfer',
'create');
80 $permissiontoread = $user->hasRight(
'prelevement',
'bons',
'lire');
81 $permissiontocreate = $user->hasRight(
'prelevement',
'bons',
'creer');
94if (
GETPOST(
'cancel',
'alpha')) {
98$parameters = array(
'mode' => $mode,
'format' => $format,
'limit' => $limit,
'page' => $page,
'offset' => $offset);
99$reshook = $hookmanager->executeHooks(
'doActions', $parameters,
$object, $action);
104if (empty($reshook)) {
113 if ($action ==
'create' && $permissiontocreate) {
114 $default_account = ($type ==
'bank-transfer' ?
'PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT' :
'PRELEVEMENT_ID_BANKACCOUNT');
118 $res =
dolibarr_set_const($db, $default_account, $id_bankaccount,
'chaine', 0,
'', $conf->entity);
120 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
128 if (empty($bank->ics) && $type !==
'bank-transfer') {
129 $errormessage = str_replace(
'{url}', $bank->getNomUrl(1,
'',
'', -1, 1), $langs->trans(
"ErrorICSmissing",
'{url}'));
140 $result = $bprev->create(
getDolGlobalString(
'PRELEVEMENT_CODE_BANQUE'),
getDolGlobalString(
'PRELEVEMENT_CODE_GUICHET'), $mode, $format, $executiondate, 0, $type, 0, 0, $sourcetype);
144 if ($bprev->error || !empty($bprev->errors)) {
147 $langs->load(
"errors");
148 setEventMessages($langs->trans(
"ErrorsOnXLines", count($bprev->invoice_in_error)),
null,
'warnings');
151 if (!empty($bprev->invoice_in_error)) {
152 foreach ($bprev->invoice_in_error as $key => $val) {
153 $mesg .=
'<span class="warning">'.$val.
"</span><br>\n";
156 } elseif ($result == 0 || !empty($bprev->invoice_in_error)) {
160 if ($type !=
'bank-transfer') {
161 $mesg = $langs->trans(
"NoInvoiceCouldBeWithdrawed", $format);
163 if ($type ==
'bank-transfer' && $sourcetype !=
'salary') {
164 $mesg = $langs->trans(
"NoInvoiceCouldBeWithdrawedSupplier", $format);
166 if ($type ==
'bank-transfer' && $sourcetype ==
'salary') {
167 $mesg = $langs->trans(
"NoSalariesCouldBeWithdrawed", $format);
172 if (!empty($bprev->invoice_in_error)) {
173 $mesg .=
'<br>'.
"\n";
174 foreach ($bprev->invoice_in_error as $key => $val) {
175 $mesg .=
'<span class="warning">'.$val.
"</span><br>\n";
179 if ($type !=
'bank-transfer') {
180 $texttoshow = $langs->trans(
"DirectDebitOrderCreated",
'{s}');
181 $texttoshow = str_replace(
'{s}', $bprev->getNomUrl(1), $texttoshow);
184 $texttoshow = $langs->trans(
"CreditTransferOrderCreated",
'{s}');
185 $texttoshow = str_replace(
'{s}', $bprev->getNomUrl(1), $texttoshow);
189 header(
"Location: ".DOL_URL_ROOT.
'/compta/prelevement/card.php?id='.urlencode((
string) ($bprev->id)).
'&type='.urlencode((
string) ($type)));
195 $objectclass =
"BonPrelevement";
196 if ($type ==
'bank-transfer') {
197 $uploaddir = $conf->paymentbybanktransfer->dir_output;
199 $uploaddir = $conf->prelevement->dir_output;
201 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
209$form =
new Form($db);
211$thirdpartystatic =
new Societe($db);
212if ($type !=
'bank-transfer') {
213 $invoicestatic =
new Facture($db);
218$arrayofselected = is_array($toselect) ? $toselect : array();
220$arrayofmassactions = array(
222if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
223 $arrayofmassactions = array();
225$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
228 $langs->load(
"errors");
229 $modulenametoshow =
"Withdraw";
230 if ($type ==
'bank-transfer') {
231 $modulenametoshow =
"PaymentByBankTransfer";
233 setEventMessages($langs->trans(
"ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv($modulenametoshow)),
null,
'errors');
237$title = $langs->trans(
"NewStandingOrder");
238if ($type ==
'bank-transfer') {
239 $title = $langs->trans(
"NewPaymentByBankTransfer");
248 print
dol_get_fiche_head($head, (!GETPOSTISSET(
'sourcetype') ?
'invoice' :
'salary'), $langs->trans(
"Invoices"), -1, $bprev->picto);
255if ($sourcetype !=
'salary') {
256 $nb = $bprev->nbOfInvoiceToPay($type);
257 $pricetowithdraw = $bprev->SommeAPrelever($type);
259 $nb = $bprev->nbOfInvoiceToPay($type,
'salary');
260 $pricetowithdraw = $bprev->SommeAPrelever($type,
'salary');
265print
'<table class="border centpercent tableforfield">';
267$labeltoshow = $langs->trans(
"NbOfInvoiceToWithdraw");
268if ($type ==
'bank-transfer') {
269 $labeltoshow = $langs->trans(
"NbOfInvoiceToPayByBankTransfer");
271if ($sourcetype ==
'salary') {
272 $labeltoshow = $langs->trans(
"NbOfInvoiceToPayByBankTransferForSalaries");
275print
'<tr><td class="titlefield">'.$labeltoshow.
'</td>';
276print
'<td class="nowraponall">';
280print
'<tr><td>'.$langs->trans(
"AmountTotal").
'</td>';
281print
'<td class="amount nowraponall">';
282print
price($pricetowithdraw, 0, $langs, 1, -1, -1, $conf->currency);
289print
'<div class="tabsAction">'.
"\n";
291print
'<form action="'.$_SERVER[
'PHP_SELF'].
'" method="POST">';
292print
'<input type="hidden" name="action" value="create">';
293print
'<input type="hidden" name="token" value="'.newToken().
'">';
294print
'<input type="hidden" name="type" value="'.$type.
'">';
295print
'<input type="hidden" name="sourcetype" value="'.$sourcetype.
'">';
298 if ($pricetowithdraw) {
299 $title = $langs->trans(
'BankToReceiveWithdraw').
': ';
300 if ($type ==
'bank-transfer') {
301 $title = $langs->trans(
'BankToPayCreditTransfer').
': ';
303 print
'<span class="hideonsmartphone">'.$title.
'</span>';
304 print
img_picto(
'',
'bank_account',
'class="pictofixedwidth"');
306 $default_account = ($type ==
'bank-transfer' ?
'PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT' :
'PRELEVEMENT_ID_BANKACCOUNT');
308 print $form->select_comptes(
getDolGlobalInt($default_account),
'id_bankaccount', 0,
"courant=1", 0,
'', 0,
'widthcentpercentminusx maxwidth300', 1);
309 print
' ';
311 if (empty($executiondate)) {
313 if ($type !=
'bank-transfer') {
322 print $langs->trans(
'ExecutionDate').
' ';
323 $datere = $executiondate;
324 print $form->selectDate($datere,
're');
327 if ($mysoc->isInEEC()) {
328 $title = $langs->trans(
"CreateForSepa");
329 if ($type ==
'bank-transfer') {
330 $title = $langs->trans(
"CreateSepaFileForPaymentByBankTransfer");
333 if ($type !=
'bank-transfer') {
334 print
'<select name="format">';
335 print
'<option value="FRST"'.($format ==
'FRST' ?
' selected="selected"' :
'').
'>'.$langs->trans(
'SEPAFRST').
'</option>';
336 print
'<option value="RCUR"'.($format ==
'RCUR' ?
' selected="selected"' :
'').
'>'.$langs->trans(
'SEPARCUR').
'</option>';
339 print
'<input type="submit" class="butAction margintoponly maringbottomonly" value="'.$title.
'"/>';
341 $title = $langs->trans(
"CreateAll");
342 if ($type ==
'bank-transfer') {
343 $title = $langs->trans(
"CreateFileForPaymentByBankTransfer");
345 print
'<input type="hidden" name="format" value="ALL">'.
"\n";
346 print
'<input type="submit" class="butAction margintoponly maringbottomonly" value="'.$title.
'">'.
"\n";
349 if ($mysoc->isInEEC()) {
350 $title = $langs->trans(
"CreateForSepaFRST");
351 if ($type ==
'bank-transfer') {
352 $title = $langs->trans(
"CreateSepaFileForPaymentByBankTransfer");
354 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.$langs->trans(
"AmountMustBePositive").
'">'.$title.
"</a>\n";
356 if ($type !=
'bank-transfer') {
357 $title = $langs->trans(
"CreateForSepaRCUR");
358 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.$langs->trans(
"AmountMustBePositive").
'">'.$title.
"</a>\n";
361 $title = $langs->trans(
"CreateAll");
362 if ($type ==
'bank-transfer') {
363 $title = $langs->trans(
"CreateFileForPaymentByBankTransfer");
365 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#">'.$title.
"</a>\n";
369 $titlefortab = $langs->transnoentitiesnoconv(
"StandingOrders");
370 $title = $langs->trans(
"CreateAll");
371 if ($type ==
'bank-transfer') {
372 $titlefortab = $langs->transnoentitiesnoconv(
"PaymentByBankTransfers");
373 $title = $langs->trans(
"CreateFileForPaymentByBankTransfer");
375 print
'<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.dol_escape_htmltag($langs->transnoentitiesnoconv(
"NoInvoiceToWithdraw", $titlefortab, $titlefortab)).
'">';
396if ($sourcetype !=
'salary') {
397 $sql =
"SELECT f.ref, f.rowid, f.total_ttc, s.nom as name, s.rowid as socid,";
398 if ($type ==
'bank-transfer') {
399 $sql .=
" f.ref_supplier,";
401 $sql .=
" pd.rowid as request_row_id, pd.date_demande, pd.amount";
402 if ($type ==
'bank-transfer') {
403 $sql .=
" FROM ".MAIN_DB_PREFIX.
"facture_fourn as f,";
405 $sql .=
" FROM ".MAIN_DB_PREFIX.
"facture as f,";
407 $sql .=
" ".MAIN_DB_PREFIX.
"societe as s,";
408 $sql .=
" ".MAIN_DB_PREFIX.
"prelevement_demande as pd";
409 $sql .=
" WHERE s.rowid = f.fk_soc";
410 $sql .=
" AND f.entity IN (".getEntity(
'invoice').
")";
412 $sql .=
" AND f.fk_statut = ".Facture::STATUS_VALIDATED;
415 $sql .=
" AND f.total_ttc > 0";
416 $sql .=
" AND pd.traite = 0";
417 $sql .=
" AND pd.ext_payment_id IS NULL";
418 if ($type ==
'bank-transfer') {
419 $sql .=
" AND pd.fk_facture_fourn = f.rowid";
421 $sql .=
" AND pd.fk_facture = f.rowid";
424 $sql .=
" AND f.fk_soc = ".((int) $socid);
427 $sql =
"SELECT s.ref, s.rowid, s.amount, CONCAT(u.lastname, ' ', u.firstname) as name, u.rowid as uid,";
428 $sql .=
" pd.rowid as request_row_id, pd.date_demande, pd.amount";
429 $sql .=
" FROM ".MAIN_DB_PREFIX.
"salary as s,";
430 $sql .=
" ".MAIN_DB_PREFIX.
"user as u,";
431 $sql .=
" ".MAIN_DB_PREFIX.
"prelevement_demande as pd";
432 $sql .=
" WHERE s.fk_user = u.rowid";
433 $sql .=
" AND s.entity IN (".getEntity(
'salary').
")";
437 $sql .=
" AND s.amount > 0";
438 $sql .=
" AND pd.traite = 0";
439 $sql .=
" AND pd.ext_payment_id IS NULL";
440 $sql .=
" AND s.rowid = pd.fk_salary AND s.paye = ".Salary::STATUS_UNPAID;
441 $sql .=
" AND pd.traite = 0";
444$nbtotalofrecords =
'';
446 $result = $db->query($sql);
447 $nbtotalofrecords = $db->num_rows($result);
448 if (($page * $limit) > $nbtotalofrecords) {
455$sql .= $db->plimit($limit + 1, $offset);
457$resql = $db->query($sql);
459 $num = $db->num_rows($resql);
464 $param .=
'&type=' . urlencode((
string) $type);
466 if ($limit > 0 && $limit != $conf->liste_limit) {
467 $param .=
'&limit='.((int) $limit);
470 $param .=
'&socid='.urlencode((
string) ($socid));
473 $param .=
"&option=".urlencode($option);
476 print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">';
477 print
'<input type="hidden" name="token" value="'.newToken().
'">';
478 print
'<input type="hidden" name="page" value="'.$page.
'">';
479 if (!empty($limit)) {
480 print
'<input type="hidden" name="limit" value="'.$limit.
'"/>';
483 print
'<input type="hidden" name="type" value="'.$type.
'">';
485 $title = $langs->trans(
"InvoiceWaitingWithdraw");
487 if ($type ==
'bank-transfer') {
488 if ($sourcetype !=
'salary') {
489 $title = $langs->trans(
"InvoiceWaitingPaymentByBankTransfer");
491 $title = $langs->trans(
"SalaryWaitingWithdraw");
495 print_barre_liste($title, $page, $_SERVER[
'PHP_SELF'], $param,
'',
'', $massactionbutton, $num, $nbtotalofrecords, $picto, 0,
'',
'', $limit);
498 $tradinvoice =
"Invoice";
499 if ($type ==
'bank-transfer') {
500 if ($sourcetype !=
'salary') {
501 $tradinvoice =
"SupplierInvoice";
503 $tradinvoice =
"RefSalary";
507 print
'<div class="div-table-responsive-no-min">';
508 print
'<table class="noborder centpercent">';
509 print
'<tr class="liste_titre">';
512 if ($massactionbutton || $massaction) {
513 print
'<td align="center">'.$form->showCheckAddButtons(
'checkforselect', 1).
'</td>';
517 print
'<td>'.$langs->trans($tradinvoice).
'</td>';
519 if ($type ==
'bank-transfer' && $sourcetype !=
'salary') {
520 print
'<td>'.$langs->trans(
"RefSupplier").
'</td>';
523 if ($sourcetype !=
'salary') {
524 print
'<td>'.$langs->trans(
"ThirdParty").
'</td>';
526 print
'<td>'.$langs->trans(
"Employee").
'</td>';
529 print
'<td>'.$langs->trans(
"RIB").
'</td>';
531 if (empty($type) || $type ==
'direc-debit') {
532 print
'<td>'.$langs->trans(
"RUM").
'</td>';
534 print
'<td class="right">';
535 if ($sourcetype ==
'salary') {
536 print $langs->trans(
"Amount");
538 print $langs->trans(
"AmountTTC");
541 print
'<td class="right">'.$langs->trans(
"DateRequest").
'</td>';
544 if ($massactionbutton || $massaction) {
545 print
'<td align="center">'.$form->showCheckAddButtons(
'checkforselect', 1).
'</td>';
551 if ($sourcetype !=
'salary') {
552 require_once DOL_DOCUMENT_ROOT.
'/societe/class/companybankaccount.class.php';
554 require_once DOL_DOCUMENT_ROOT.
'/user/class/userbankaccount.class.php';
555 require_once DOL_DOCUMENT_ROOT.
'/salaries/class/salary.class.php';
558 while ($i < $num && $i < $limit) {
559 $obj = $db->fetch_object($resql);
560 if ($sourcetype !=
'salary') {
562 $bac->fetch(0,
'', $obj->socid);
564 $invoicestatic->id = $obj->rowid;
565 $invoicestatic->ref = $obj->ref;
566 if ($type ==
'bank-transfer') {
567 $invoicestatic->ref_supplier = $obj->ref_supplier;
571 $bac->fetch(0,
'', $obj->uid);
573 $salary =
new Salary($db);
574 $salary->fetch($obj->rowid);
576 print
'<tr class="oddeven">';
580 if ($massactionbutton || $massaction) {
581 print
'<td class="nowrap center">';
583 if (in_array($obj->request_row_id, $arrayofselected)) {
586 print
'<input id="cb'.$obj->request_row_id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->request_row_id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
592 print
'<td class="tdoverflowmax150">';
593 if ($sourcetype !=
'salary') {
594 print $invoicestatic->getNomUrl(1,
'withdraw');
596 print $salary->getNomUrl(1,
'withdraw');
600 if ($type ==
'bank-transfer' && $sourcetype !=
'salary') {
601 print
'<td class="tdoverflowmax100" title="'.dol_escape_htmltag($invoicestatic->ref_supplier).
'">';
607 if ($sourcetype !=
'salary') {
608 print
'<td class="tdoverflowmax100">';
609 $thirdpartystatic->fetch($obj->socid);
610 print $thirdpartystatic->getNomUrl(1,
'ban');
613 print
'<td class="tdoverflowmax100">';
614 $user->fetch($obj->uid);
615 print $user->getNomUrl(-1);
622 if (!empty($bac->iban) || !empty($bac->bic)) {
623 print $bac->iban.(($bac->iban && $bac->bic) ?
' / ' :
'').$bac->bic;
624 if ($bac->verif() <= 0) {
625 print
img_warning(
'Error on default bank number for IBAN : '.$langs->trans($bac->error));
628 print
img_warning($langs->trans(
"IBANNotDefined"));
631 print
img_warning($langs->trans(
"NoBankAccountDefined"));
636 if (empty($type) || $type ==
'direct-debit') {
638 $rumtoshow = $thirdpartystatic->display_rib(
'rum');
641 $format = $thirdpartystatic->display_rib(
'format');
642 if ($type !=
'bank-transfer') {
644 print
' ('.$format.
')';
648 print
img_warning($langs->trans(
"NoBankAccountDefined"));
654 print
'<td class="right amount">';
655 print
price($obj->amount, 0, $langs, 0, 0, -1, $conf->currency);
658 print
'<td class="right">';
663 if ($massactionbutton || $massaction) {
664 print
'<td class="nowrap center">';
666 if (in_array($obj->request_row_id, $arrayofselected)) {
669 print
'<input id="cb'.$obj->request_row_id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->request_row_id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
678 if ($type ==
'bank-transfer') {
681 if ($massactionbutton || $massaction) {
684 print
'<tr class="oddeven"><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"None").
'</span></td></tr>';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
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 information (by default a local PHP server timestamp) Rep...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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.
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_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
print_barre_liste($title, $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.
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.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
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 information.
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.