[freeside-commits] freeside/httemplate/search cdr.html, 1.18.2.1, 1.18.2.2

Ivan,,, ivan at wavetail.420.am
Wed Dec 2 23:18:27 PST 2009


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

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cdr.html 
Log Message:
fix cdr search

Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.18.2.1
retrieving revision 1.18.2.2
diff -u -d -r1.18.2.1 -r1.18.2.2
--- cdr.html	19 Nov 2009 09:47:15 -0000	1.18.2.1
+++ cdr.html	3 Dec 2009 07:18:25 -0000	1.18.2.2
@@ -70,10 +70,11 @@
 ###
 
 my $str2time_sql = str2time_sql;
+my $closing      = str2time_sql_closing;
 
 my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);
-push @search, "$str2time_sql calldate) >= $beginning ",
-              "$str2time_sql calldate) <= $ending";
+push @search, "$str2time_sql calldate $closing >= $beginning ",
+              "$str2time_sql calldate $closing <= $ending";
 
 ###
 # duration / billsec
@@ -187,6 +188,7 @@
   my $cdr_batch =
     qsearchs('cdr_batch', { 'cdrbatch' => scalar($cgi->param('cdrbatch')) } );
   if ( $cdr_batch ) {
+    $hashref->{cdrbatchnum} = $cdr_batch->cdrbatchnum;
     push @search, 'cdrbatchnum = '. $cdr_batch->cdrbatchnum;
   } else {
     die "unknown cdrbatch ". $cgi->param('cdrbatch');



More information about the freeside-commits mailing list