diff options
author | ivan <ivan> | 2006-03-20 19:13:27 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-03-20 19:13:27 +0000 |
commit | ff24bc786a5fd479f2252260e0da580a736f97be (patch) | |
tree | 6d3496500bebd4f17f754ab79478c53dea1b5daf /httemplate/search/cdr.html | |
parent | 96fde39e747fdc5c618b5a92ec354384931cf317 (diff) |
add price plan to bill on internal or external CDRs directly, add option to export CDRs to a per-customer downstream file
Diffstat (limited to 'httemplate/search/cdr.html')
-rw-r--r-- | httemplate/search/cdr.html | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 75049b443..ec847e41f 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,13 +1,28 @@ <% +my $title = 'Call Detail Records'; my $hashref = {}; -#process params for CDR search, populate $hashref... - my $count_query = 'SELECT COUNT(*) FROM cdr'; + +#process params for CDR search, populate $hashref... # and fixup $count_query +if ( $cgi->param('freesidestatus') eq 'NULL' ) { + + my $title = "Unprocessed $title"; + $hashref->{'freesidestatus'} = ''; # Record.pm will take care of it + $count_query .= " AND ( freesidestatus IS NULL OR freesidestatus = '' )"; + +} elsif ( $cgi->param('freesidestatus') =~ /^([\w ]+)$/ ) { + + my $title = "Processed $title"; + $hashref->{'freesidestatus'} = $1; + $count_query .= " AND freesidestatus = '$1'"; + +} + %><%= include( 'elements/search.html', - 'title' => 'Call Detail Records', + 'title' => $title, 'name' => 'call detail records', 'query' => { 'table' => 'cdr', 'hashref' => $hashref |