summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs_selfservice/FS-SelfService/cgi/make_payment.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/make_payment.html b/fs_selfservice/FS-SelfService/cgi/make_payment.html
index 3bce67433..bec37cac3 100644
--- 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">
<%=
- $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>