diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php index 5c0d3bb6cbb..b010359a512 100644 --- a/htdocs/compta/dons/fiche.php +++ b/htdocs/compta/dons/fiche.php @@ -38,17 +38,15 @@ if ($action == 'add') $don->amount = $amount; $don->cp = $cp; $don->ville = $ville; - $don->date = $db->idate(mktime(12, 0 , 0, $remonth, $reday, $reyear)); + $don->date = mktime(12, 0 , 0, $remonth, $reday, $reyear); $don->note = $note; $don->public = $public; $don->projetid = $projetid; - $don->modepaiement = $modepaiement; + $don->modepaiementid = $modepaiement; if ($don->create($user->id) ) - { - + { Header("Location: index.php"); - } } else @@ -63,6 +61,7 @@ if ($action == 'delete') { $don = new Don($db); $don->delete($rowid); + Header("Location: liste.php?statut=0"); } if ($action == 'valid_promesse') { @@ -75,7 +74,7 @@ if ($action == 'valid_promesse') if ($action == 'set_paye') { $don = new Don($db); - if ($don->set_paye($rowid)) + if ($don->set_paye($rowid, $modepaiement)) { Header("Location: liste.php?statut=1"); } @@ -195,7 +194,7 @@ if ($rowid > 0 && $action == 'edit') $don->fetch($rowid); print_titre("Traitement du don"); - + print "
"; }