better SS payment process UI for negative balances, RT12728
[freeside.git] / fs_selfservice / FS-SelfService / cgi / make_payment.html
index 645b68e..06440f6 100644 (file)
   <TH ALIGN="right">Payment&nbsp;amount</TH>
   <TD COLSPAN=7>
     <TABLE><TR><TD BGCOLOR="#ffffff">
-      $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$balance)%>">
+<%=
+    $amt = '';
+    $amt = sprintf("%.2f",$balance) if $balance > 0;
+    '';
+%>
+      $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=$amt%>">
     </TD></TR></TABLE>
   </TD>
 </TR>