projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Payment takes into account the amount when it is given (Closes #1567)
[platal.git]
/
modules
/
payment.php
diff --git
a/modules/payment.php
b/modules/payment.php
index
c338852
..
e183dc8
100644
(file)
--- a/
modules/payment.php
+++ b/
modules/payment.php
@@
-142,6
+142,9
@@
class PaymentModule extends PLModule
$page->kill('La transaction selectionnée est périmée.');
}
+ if (Env::has('montant')) {
+ $pay->amount_def = Env::v('montant');
+ }
$val = (Post::v('amount') != 0) ? Post::v('amount') : $pay->amount_def;
if (($error = $pay->check($val)) !== true) {