[freeside-commits] freeside/httemplate/search cust_bill_pkg.cgi, 1.47, 1.48

Mark Wells mark at wavetail.420.am
Mon Dec 26 12:24:20 PST 2011


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

Modified Files:
	cust_bill_pkg.cgi 
Log Message:
sales report improvements, #15393

Index: cust_bill_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill_pkg.cgi,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -w -d -r1.47 -r1.48
--- cust_bill_pkg.cgi	16 Dec 2011 04:48:05 -0000	1.47
+++ cust_bill_pkg.cgi	26 Dec 2011 20:24:17 -0000	1.48
@@ -145,8 +145,16 @@
 my @where = ( $agentnums_sql );
 
 my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);
+
+if ( $cgi->param('distribute') == 1 ) {
+  push @where, "sdate <= $ending",
+               "edate >  $beginning",
+  ;
+}
+else {
 push @where, "_date >= $beginning",
              "_date <= $ending";
+}
 
 if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
   push @where, "cust_main.agentnum = $1";



More information about the freeside-commits mailing list