[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi make_payment.html, 1.20, 1.21
Erik Levinson
levinse at wavetail.420.am
Fri Jan 21 14:17:32 PST 2011
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv20947/fs_selfservice/FS-SelfService/cgi
Modified Files:
make_payment.html
Log Message:
add (unfinished) credit card surcharge, part 1
Index: make_payment.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/make_payment.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -d -r1.20 -r1.21
--- make_payment.html 22 Sep 2010 19:16:18 -0000 1.20
+++ make_payment.html 21 Jan 2011 22:17:30 -0000 1.21
@@ -17,7 +17,13 @@
<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>
More information about the freeside-commits
mailing list