[freeside-commits] freeside/httemplate/search/elements cust_main_dayranges.html, 1.11, 1.12

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


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

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

Index: cust_main_dayranges.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/cust_main_dayranges.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- cust_main_dayranges.html	29 Jul 2010 16:41:30 -0000	1.11
+++ cust_main_dayranges.html	7 Sep 2010 23:31:14 -0000	1.12
@@ -145,8 +145,12 @@
     $days = $1;
   }
 
+  # If this is set, allow cust_main records with nonzero balances
+  my $negative = $cgi->param('negative') || 0;
+
   push @where,
-    call_range_sub($range_sub, $days, 0, 'offset' => $offset, 'no_as'=>1). ' > 0'; # != 0';
+    call_range_sub($range_sub, $days, 0, 'offset' => $offset, 'no_as'=>1). 
+    ($negative ? ' != 0' : ' > 0');
 }
 
 if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {



More information about the freeside-commits mailing list