106 |
} |
} |
107 |
else |
else |
108 |
{ |
{ |
109 |
$mesg="Montant non défini"; |
$mesg=$langs->trans("ErrorFieldRequired",$langs->trans("Amount")); |
110 |
$_GET["action"] = "create"; |
$_GET["action"] = "create"; |
111 |
} |
} |
112 |
} |
} |
129 |
$don = new Don($db); |
$don = new Don($db); |
130 |
if ($don->valid_promesse($_GET["rowid"], $user->id)) |
if ($don->valid_promesse($_GET["rowid"], $user->id)) |
131 |
{ |
{ |
132 |
Header("Location: liste.php"); |
Header("Location: fiche.php?rowid=".$_GET["rowid"]); |
133 |
exit; |
exit; |
134 |
} |
} |
135 |
} |
} |
138 |
$don = new Don($db); |
$don = new Don($db); |
139 |
if ($don->set_paye($_GET["rowid"], $modepaiement)) |
if ($don->set_paye($_GET["rowid"], $modepaiement)) |
140 |
{ |
{ |
141 |
Header("Location: liste.php"); |
Header("Location: fiche.php?rowid=".$_GET["rowid"]); |
142 |
exit; |
exit; |
143 |
} |
} |
144 |
} |
} |
410 |
|
|
411 |
if ($don->statut == 2 || $don->statut == 3) |
if ($don->statut == 2 || $don->statut == 3) |
412 |
{ |
{ |
413 |
print ' <a class="butAction" href="fiche.php?rowid='.$don->id.'&action=build">'.$langs->trans('BuildDoc').'</a>'; |
print ' <a class="butAction" href="fiche.php?rowid='.$don->id.'&action=build">'.$langs->trans('BuildDonationReceipt').'</a>'; |
414 |
} |
} |
415 |
|
|
416 |
if ($don->statut == 0) |
if ($don->statut == 0) |