diff --git a/htdocs/compta/dons/edit.php b/htdocs/compta/dons/edit.php
index 979280b372e..3814ab7f672 100644
--- a/htdocs/compta/dons/edit.php
+++ b/htdocs/compta/dons/edit.php
@@ -37,6 +37,7 @@ if ($action == 'update')
$don->id = $HTTP_POST_VARS["rowid"];
$don->prenom = $prenom;
$don->nom = $nom;
+ $don->statut = $HTTP_POST_VARS["statutid"];
$don->societe = $societe;
$don->adresse = $adresse;
$don->amount = $amount;
@@ -67,6 +68,8 @@ if ($action == 'update')
llxHeader();
+if ($rowid)
+{
$don = new Don($db);
$don->id = $rowid;
@@ -92,13 +95,27 @@ llxHeader();
print "";
print "";
- print "
| Date du don : | ";
+ print " |
| Date du don | ";
print_date_select($don->date);
print " | ";
- print 'Commentaires : ';
+ print ' | Commentaires : ';
print ' |
';
- print "| Type : | \n";
+
+ print " |
| Statut du don | ";
+
+ $listst[0] = "Promesse à valider";
+ $listst[1] = "Promesse validée";
+ $listst[2] = "Don payé";
+ $listst[3] = "Don encaissé";
+
+
+ $sel = new Form($db);
+ $sel->select_array("statutid",$listst,$don->statut);
+
+ print " |
";
+
+ print "| Mode de paiement | \n";
$paiement = new Paiement($db);
@@ -106,7 +123,7 @@ llxHeader();
print " |
\n";
- print "| Projet : | \n";
+ print " |
| Projet | \n";
$prj = new ProjetDon($db);
$listeprj = $prj->liste_array();
@@ -118,17 +135,17 @@ llxHeader();
print " ";
print " |
\n";
- print "| Don public : | |