[freeside-commits] freeside/httemplate/search/elements cust_main_dayranges.html, 1.2.2.8, 1.2.2.9

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


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

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	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.2.2.8
retrieving revision 1.2.2.9
diff -u -w -d -r1.2.2.8 -r1.2.2.9
--- cust_main_dayranges.html	29 Jul 2010 16:41:42 -0000	1.2.2.8
+++ cust_main_dayranges.html	7 Sep 2010 23:31:25 -0000	1.2.2.9
@@ -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