<% include('/elements/header.html', 'Call Detail Record Search' ) %>
% #if ( ) { # disable for everyone not using termination billing... % foreach my $termpart ( 1..1 ) { #qsearch('part_termination % } % #} <% include ( '/elements/tr-input-beginning_ending.html' ) %> <% include( '/elements/tr-input-lessthan_greaterthan.html', 'label' => 'Duration (sec)', 'field' => 'duration', ) %> <% include( '/elements/tr-input-lessthan_greaterthan.html', 'label' => 'Billable duration (sec)', 'field' => 'billsec', ) %> <% include( '/elements/tr-select-cdrbatch.html' ) %>
Search options
Status:
Termination Status:
Source #:
Destination #:
Destination Context:
Charged Party #:
Acct ID (one per-line):
 
Display options
<% include('/elements/checkboxes.html', 'names_list' => $names_list, 'element_name_prefix' => 'show_', 'checked_callback' => sub { $show_default{$_[1]} }, # my($cgi, $name) = @_; ) %>

<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('List rating data'); my @fields = fields('cdr'); my $labels = FS::cdr->table_info->{'fields'}; #XXX config my @show_default = qw( calldate clid src dst dcontext charged_party startdate answerdate enddate duration billsec disposition amaflags accountcode userfield rated_price upstream_price carrierid svcnum freesidestatus freesiderewritestatus ); my %show_default = map { $_=>1 } @show_default; my $names_list = [ map { [ $_ => { 'label' => 'Show '. ( $labels->{$_} || $_ ) } ] } @fields ];