diff --git a/htdocs/compta/prelevement/lignes.php b/htdocs/compta/prelevement/lignes.php index 3c5306ba213..3be772ed917 100644 --- a/htdocs/compta/prelevement/lignes.php +++ b/htdocs/compta/prelevement/lignes.php @@ -30,30 +30,6 @@ require_once DOL_DOCUMENT_ROOT."/lib/dolibarrmail.class.php"; */ if ($user->societe_id > 0) accessforbidden(); -if ($_POST["action"] == 'confirm_rejet') -{ - if ( $_POST["confirm"] == 'yes') - { - if ($_POST["motif"] > 0) - { - $rej = new RejetPrelevement($db, $user); - - $rej->create($user, $_GET["id"], $_GET["socid"], $_GET["previd"], $_POST["motif"]); - - Header("Location: lignes.php?id=".$_GET["id"]); - } - else - { - Header("Location: lignes.php?id=".$_GET["id"]."&action=rejet&socid=".$_GET["socid"]."&previd=".$_GET["previd"]); - } - } - else - { - Header("Location: lignes.php?id=".$_GET["id"]); - } -} - - llxHeader('','Bon de prélèvement'); $h = 0; @@ -102,55 +78,6 @@ if ($_GET["id"]) } } -if ($_GET["action"] == 'rejet') -{ - $html = new Form($db); - - $soc = new Societe($db); - $soc->fetch($_GET["socid"]); - - //$html->form_confirm("factures.php"."?id=".$_GET["id"]."&socid=".$_GET["socid"]."&previd=".$_GET["previd"],"Rejet de prélèvement","Etes-vous sûr de vouloir saisir un rejet de prélèvement pour la société ".$soc->nom." ?","confirm_rejet"); - - $rej = new RejetPrelevement($db, $user); - - print '
'; - - - - - print '| Référence | '.$bon->ref.' |