projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add (unfinished) credit card surcharge, part 1
[freeside.git]
/
fs_selfservice
/
FS-SelfService
/
cgi
/
make_payment.html
diff --git
a/fs_selfservice/FS-SelfService/cgi/make_payment.html
b/fs_selfservice/FS-SelfService/cgi/make_payment.html
index
645b68e
..
3bce674
100644
(file)
--- a/
fs_selfservice/FS-SelfService/cgi/make_payment.html
+++ b/
fs_selfservice/FS-SelfService/cgi/make_payment.html
@@
-17,7
+17,13
@@
<TH ALIGN="right">Payment amount</TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<TH ALIGN="right">Payment amount</TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
- $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$balance)%>">
+<%=
+ $amt = $balance;
+ $amt += $amt * $credit_card_surcharge_percentage/100
+ if $credit_card_surcharge_percentage > 0;
+ '';
+%>
+ $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$amt)%>">
</TD></TR></TABLE>
</TD>
</TR>
</TD></TR></TABLE>
</TD>
</TR>