projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix 477 VI
[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
3bce674
..
bec37ca
100644
(file)
--- a/
fs_selfservice/FS-SelfService/cgi/make_payment.html
+++ b/
fs_selfservice/FS-SelfService/cgi/make_payment.html
@@
-18,12
+18,16
@@
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<%=
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<%=
- $amt = $balance;
- $amt += $amt * $credit_card_surcharge_percentage/100
- if $credit_card_surcharge_percentage > 0;
+ $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>
</TD></TR></TABLE>
</TD>
</TR>