better SS payment process UI for negative balances, RT12728
authorlevinse <levinse>
Thu, 5 May 2011 02:38:35 +0000 (02:38 +0000)
committerlevinse <levinse>
Thu, 5 May 2011 02:38:35 +0000 (02:38 +0000)
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>