add option for listing customers without a balance (closes: RT#2752) and fix bug...
[freeside.git] / httemplate / search / report_receivables.html
index bb23f1f..5609753 100755 (executable)
@@ -1,23 +1,32 @@
 <% include('/elements/header.html', 'Accounts Receivable Aging Summary' ) %>
 
-    <FORM ACTION="report_receivables.cgi" METHOD="GET">
+<FORM NAME="OneTrueForm" ACTION="report_receivables.cgi" METHOD="GET">
 
-    <TABLE>
+<TABLE BGCOLOR="#cccccc" CELLSPACING=0>
 
-      <% include( '/elements/tr-select-agent.html' ) %>
+  <TR>
+    <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left">
+      <FONT SIZE="+1">Search options</FONT>
+    </TH>
+  </TR>
 
-      <TR>
-        <TD ALIGN="right">Over </TD>
-        <TD><INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3> days</TD>
-      </TR>
+  <% include( '/elements/tr-select-agent.html' ) %>
+  
+  <TR>
+    <TD ALIGN="right">Customers</TD>
+    <TD>
+      <INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.days.disabled=true; } else { document.OneTrueForm.days.disabled=false; }">All customers (even those without an outstanding balance)<BR>
+      <INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="if (this.checked) { document.OneTrueForm.days.disabled=false; } else { document.OneTrueForm.days.disabled=true; }">Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old
+    </TD>
+  </TR>
 
-    </TABLE>
+</TABLE>
 
-    <BR><INPUT TYPE="submit" VALUE="Get Report">
-    </FORM>
+<BR><INPUT TYPE="submit" VALUE="Get Report">
+</FORM>
+
+<% include('/elements/footer.html') %>
 
-  </BODY>
-</HTML>
 <%init>
 
 die "access denied"