diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 919f72f6043..ea1f01b8415 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -52,6 +52,18 @@ if ($_GET["action"] == "new") } } +if ($_GET["action"] == "delete") +{ + $fact = new Facture($db); + if ($fact->fetch($_GET["facid"])) + { + $result = $fact->demande_prelevement_delete($user,$_GET["did"]); + if ($result == 0) + { + Header("Location: prelevement.php?facid=".$fact->id); + } + } +} /* * Sécurité accés client @@ -149,7 +161,7 @@ if ($_GET["facid"] > 0) print '