[freeside-commits] freeside/httemplate/search report_cust_main.html, 1.1.2.3, 1.1.2.4 cust_main.html, 1.6.2.1, 1.6.2.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Dec 19 13:05:55 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv26709/httemplate/search
Modified Files:
Tag: FREESIDE_1_7_BRANCH
report_cust_main.html cust_main.html
Log Message:
add options for balance over/under to advanced customer report
Index: report_cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_main.html,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- report_cust_main.html 16 Dec 2007 21:01:46 -0000 1.1.2.3
+++ report_cust_main.html 19 Dec 2007 21:05:53 -0000 1.1.2.4
@@ -30,6 +30,12 @@
% }
+ <% include( '/elements/tr-input-lessthan_greaterthan.html',
+ label => 'Current Balance',
+ field => 'current_balance',
+ )
+ %>
+
<TR>
<TD ALIGN="right" VALIGN="center">Include cancelled packages</TD>
<TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -d -r1.6.2.1 -r1.6.2.2
--- cust_main.html 16 Dec 2007 20:48:21 -0000 1.6.2.1
+++ cust_main.html 19 Dec 2007 21:05:53 -0000 1.6.2.2
@@ -69,6 +69,15 @@
}
##
+# amounts
+##
+
+my $balance_sql = FS::cust_main->balance_sql();
+
+push @where, map { s/current_balance/$balance_sql/; $_ }
+ FS::UI::Web::parse_lt_gt($cgi, 'current_balance');
+
+##
# setup queries, subs, etc. for the search
##
@@ -83,7 +92,11 @@
my $count_query = "SELECT COUNT(*) FROM cust_main $extra_sql";
-my $select = '*';
+my $select = join(', ',
+ 'cust_main.custnum',
+ FS::UI::Web::cust_sql_fields($cgi->param('cust_fields')),
+ );
+
my (@extra_headers) = ();
my (@extra_fields) = ();
More information about the freeside-commits
mailing list