[freeside-commits] freeside/httemplate/search report_receivables.html, 1.10.2.1, 1.10.2.2

Mark Wells mark at wavetail.420.am
Tue Sep 7 16:31:27 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv6631

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	report_receivables.html 
Log Message:
Option to include customers with credit balances in aging report, RT#9834

Index: report_receivables.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_receivables.html,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -u -w -d -r1.10.2.1 -r1.10.2.2
--- report_receivables.html	31 Mar 2010 07:41:42 -0000	1.10.2.1
+++ report_receivables.html	7 Sep 2010 23:31:25 -0000	1.10.2.2
@@ -20,8 +20,23 @@
   <TR>
     <TD ALIGN="right">Customers</TD>
     <TD>
-      <INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.days.disabled=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">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=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old
+      <SCRIPT TYPE="text/javascript">
+function toggle(obj) {
+  var f = document.OneTrueForm;
+  var val = (obj.value == obj.checked);
+  f.days.disabled = val;
+  f.negative.disabled = val;
+  f.days.style.backgroundColor = val ? '#dddddd' : '#ffffff';
+}
+      </SCRIPT>
+      <TABLE STYLE="padding: 0px">
+        <TR><TD><INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="toggle(this)"></TD>
+        <TD>All customers (even those without an outstanding balance)</TD></TR>
+        <TR><TD><INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="toggle(this)"></TD>
+        <TD>Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old</TD></TR>
+        <TR><TD></TD>
+        <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1">&nbsp;Including customers with credit balances</TD></TR>
+      </TABLE>
     </TD>
   </TR>
   <% include( '/elements/tr-input-date-field.html', {



More information about the freeside-commits mailing list