[freeside-commits] freeside/httemplate/search cust_bill_pkg.cgi, 1.45.2.2, 1.45.2.3
Mark Wells
mark at wavetail.420.am
Tue Jan 10 10:38:46 PST 2012
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv3434/httemplate/search
Modified Files:
Tag: FREESIDE_2_3_BRANCH
cust_bill_pkg.cgi
Log Message:
projected sales report, #15393
Index: cust_bill_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill_pkg.cgi,v
retrieving revision 1.45.2.2
retrieving revision 1.45.2.3
diff -u -w -d -r1.45.2.2 -r1.45.2.3
--- cust_bill_pkg.cgi 16 Dec 2011 04:48:36 -0000 1.45.2.2
+++ cust_bill_pkg.cgi 10 Jan 2012 18:38:44 -0000 1.45.2.3
@@ -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