diff options
author | ivan <ivan> | 2009-12-03 07:18:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-03 07:18:24 +0000 |
commit | 16c549d95a622eca359662af7670df73ad991ded (patch) | |
tree | 677f3d3c49e947698b709f7e4aa6e96b0c26273f | |
parent | 1ddf402f790ff71e75a1ad4a1095a0a8c1c00a60 (diff) |
fix cdr search
-rw-r--r-- | httemplate/search/cdr.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index cfbc5ed5d..6b38d3ba7 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -70,10 +70,11 @@ my @search = (); ### 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 @@ if ( $cgi->param('cdrbatch') ) { 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'); |