[freeside-commits] freeside/httemplate/search cdr.html,1.19,1.20

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


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

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

Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- cdr.html	19 Nov 2009 09:47:02 -0000	1.19
+++ cdr.html	3 Dec 2009 07:18:24 -0000	1.20
@@ -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