[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi make_payment.html, 1.21, 1.22
Erik Levinson
levinse at wavetail.420.am
Wed May 4 19:27:01 PDT 2011
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv24120/fs_selfservice/FS-SelfService/cgi
Modified Files:
make_payment.html
Log Message:
better SS payment process UI for negative balances, RT12728
Index: make_payment.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/make_payment.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -d -r1.21 -r1.22
--- make_payment.html 21 Jan 2011 22:17:30 -0000 1.21
+++ make_payment.html 5 May 2011 02:26:59 -0000 1.22
@@ -18,12 +18,16 @@
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<%=
+ $amt = '';
+ if ( $balance > 0 ) {
$amt = $balance;
$amt += $amt * $credit_card_surcharge_percentage/100
if $credit_card_surcharge_percentage > 0;
+ $amt = sprintf("%.2f",$amt);
+ }
'';
%>
- $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$amt)%>">
+ $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=$amt%>">
</TD></TR></TABLE>
</TD>
</TR>
More information about the freeside-commits
mailing list