diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php index 49f4f458349..f5a7b136c0c 100644 --- a/htdocs/compta/dons/fiche.php +++ b/htdocs/compta/dons/fiche.php @@ -67,6 +67,12 @@ if ($action == 'delete') $don->delete($rowid); Header("Location: liste.php?statut=0"); } +if ($action == 'commentaire') +{ + $don = new Don($db); + $don->set_commentaire($rowid,$HTTP_POST_VARS["commentaire"]); + $action = "edit"; +} if ($action == 'valid_promesse') { $don = new Don($db); @@ -96,6 +102,13 @@ if ($action == 'set_encaisse') llxHeader(); +/* ************************************************************************** */ +/* */ +/* Création d'une fiche don */ +/* */ +/* ************************************************************************** */ + + if ($action == 'create') { $sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; @@ -182,7 +195,7 @@ if ($action == 'create') { } /* ************************************************************************** */ /* */ -/* */ +/* Edition de la fiche don */ /* */ /* ************************************************************************** */ if ($rowid > 0 && $action == 'edit') @@ -295,6 +308,20 @@ if ($rowid > 0 && $action == 'edit') } print "
"; +/* ************************************************************************** */ +/* */ +/* Commentaire */ +/* */ +/* ************************************************************************** */ + + print "
'; }