From 8edab387acae6225607c5e33e01d511ba6b3bed9 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 7 Jan 2005 15:56:06 +0000 Subject: [PATCH] Ajout de la suppression d'une demande de prelevement --- htdocs/compta/facture/prelevement.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 'Date demande'; print 'Date traitement'; print 'Bon prélèvement'; - print 'Utilisateur'; + print 'Utilisateur  '; print ''; $var=True; @@ -180,6 +192,10 @@ if ($_GET["facid"] > 0) print 'En attente de traitement'; print '-'; print ''.$obj->firstname." ".$obj->name.''; + print ''; + print ''; + print img_delete(); + print ''; print "\n"; $i++; } @@ -223,6 +239,8 @@ if ($_GET["facid"] > 0) print '">'.$obj->fk_prelevement."\n"; print ''.$obj->firstname." ".$obj->name.''; + + print '-'; print "\n"; $i++;