diff options
| author | ivan <ivan> | 2008-03-26 02:27:07 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2008-03-26 02:27:07 +0000 |
| commit | 96704cdedc2350daaeb6945efe6a0697eee3d643 (patch) | |
| tree | 8ecc08d473ac4e2486c3cbfc41e7c7056c6282f2 /httemplate/search/cdr.html | |
| parent | 1fe116bffdcea1110d4b6d73b8616a3a147bdee2 (diff) | |
add ability to query ranges of duration & billable seconds to CDR report
Diffstat (limited to 'httemplate/search/cdr.html')
| -rw-r--r-- | httemplate/search/cdr.html | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 0facc7fab..8079b5b98 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -24,7 +24,6 @@ my $hashref = {}; # and fixup $count_query my @search = (); -my @qsearch = (); ### # freesidestatus @@ -51,18 +50,22 @@ if ( $cgi->param('freesidestatus') eq 'NULL' ) { my $str2time_sql = str2time_sql; my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); -push @search, -my @dsearch = ( "$str2time_sql calldate) >= $beginning ", - "$str2time_sql calldate) <= $ending" - ); -push @search, @dsearch; -push @qsearch, @search; +push @search, "$str2time_sql calldate) >= $beginning ", + "$str2time_sql calldate) <= $ending"; +### +# duration / billsec +### + +push @search, FS::UI::Web::parse_lt_gt($cgi, 'duration'); +push @search, FS::UI::Web::parse_lt_gt($cgi, 'billsec'); ### # src/dest ### +my @qsearch = @search; + if ( $cgi->param('src') =~ /^\s*([\d\-\+\ ]+)\s*$/ ) { ( my $src = $1 ) =~ s/\D//g; $hashref->{'src'} = $src; |
