diff --git a/htdocs/compta/prelevement/config.php b/htdocs/compta/prelevement/config.php
index 39c32ed9389..3578b26c730 100644
--- a/htdocs/compta/prelevement/config.php
+++ b/htdocs/compta/prelevement/config.php
@@ -18,218 +18,218 @@
*/
/**
- \file htdocs/compta/prelevement/config.php
- \ingroup prelevement
- \brief Page configuration des prelevements
- \version $Id$
-*/
+ \file htdocs/compta/prelevement/config.php
+ \ingroup prelevement
+ \brief Page configuration des prelevements
+ \version $Id$
+ */
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
if (!$user->rights->prelevement->bons->lire)
- accessforbidden();
+accessforbidden();
if ($_GET["action"] == "set" && $user->rights->prelevement->bons->configurer)
{
- for ($i = 1 ; $i < 7 ; $i++)
- {
- dolibarr_set_const($db, $_POST["nom$i"], $_POST["value$i"], $type='chaine');
- }
+ for ($i = 1 ; $i < 7 ; $i++)
+ {
+ dolibarr_set_const($db, $_POST["nom$i"], $_POST["value$i"], $type='chaine');
+ }
- Header("Location: config.php");
+ Header("Location: config.php");
+ exit;
}
if ($_GET["action"] == "addnotif" && $user->rights->prelevement->bons->configurer)
{
- $bon = new BonPrelevement($db);
- $bon->AddNotification($_POST["user"],$_POST["action"]);
-
- Header("Location: config.php");
+ $bon = new BonPrelevement($db);
+ $bon->AddNotification($_POST["user"],$_POST["action"]);
+
+ Header("Location: config.php");
+ exit;
}
if ($_GET["action"] == "deletenotif" && $user->rights->prelevement->bons->configurer)
{
- $bon = new BonPrelevement($db);
- $bon->DeleteNotificationById($_GET["notif"]);
-
- Header("Location: config.php");
+ $bon = new BonPrelevement($db);
+ $bon->DeleteNotificationById($_GET["notif"]);
+
+ Header("Location: config.php");
+ exit;
}
/*
- *
- *
- *
+ * View
*/
+
llxHeader('',$langs->trans("WithdrawalsSetup"));
print_fiche_titre($langs->trans("WithdrawalsSetup"));
print "
";
-/*
- *
- *
- */
if ($user->rights->prelevement->bons->configurer)
- print '
| Nb de facture à prélever : | '; +print '|||||||||
| '.$langs->trans("NbOfInvoiceToWithdraw").' | '; print ''; print $nb; -print ' | Notre banque : | '; +print ' | '.$langs->trans("BankCode").' | '; print $nb1; -print ' | Notre agence : | '; +print ' | '.$langs->trans("DeskCode").' | '; print $nb11; print ' |
| Somme à prélever | '; +print '|||||||||
| '.$langs->trans("AmountToWithdraw").' | '; print ''; print price($bprev->SommeAPrelever()); print ' | '; @@ -103,7 +110,7 @@ if ($nb) } else { - print "Aucune facture en mode de paiement 'Prélevement' n'a de demande de prélèvements en attente.||||||||
| '.$langs->trans("Statistics").' | |
| Nb de facture à prélever | '; +print '|
| '.$langs->trans("NbOfInvoiceToWithdraw").' | '; print ''; print $bprev->NbFactureAPrelever(); print ' |
| Somme à prélever | '; +print '|
| '.$langs->trans("AmountToWithdraw").' | '; print ''; print price($bprev->SommeAPrelever()); print ' |