X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cdr.html;h=ef544783860b2e45dc352d62c0157b43b08782a8;hb=dbf521cf2f1f1a05f4722006f339b2595c8ee70f;hp=11049ac9373853ff1e76500dabf8ba32324f8df7;hpb=9e5bf689d08f88ec6b49312c2c515f5a28bfdf11;p=freeside.git
diff --git a/httemplate/search/report_cdr.html b/httemplate/search/report_cdr.html
index 11049ac93..ef5447838 100644
--- a/httemplate/search/report_cdr.html
+++ b/httemplate/search/report_cdr.html
@@ -22,9 +22,14 @@
Status: |
|
@@ -46,6 +51,16 @@
% }
% #}
+ <% include('/elements/tr-select-table.html',
+ field => 'cdrtypenum',
+ label => 'CDR Type',
+ table => 'cdr_type',
+ name_col => 'cdrtypename',
+ disable_empty => 1,
+ pre_options => [ '', 'all',
+ 'none', 'none' ] )
+ %>
+
<% include ( '/elements/tr-input-beginning_ending.html' ) %>
@@ -132,6 +147,11 @@
|
+
+ Acct Code (one per-line): |
+ |
+
+
|
@@ -168,7 +188,13 @@ die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('List rating data');
my @fields = fields('cdr');
+push @fields, 'ratename';
my $labels = FS::cdr->table_info->{'fields'};
+$labels->{ratename} = 'Rate plan';
+
+my $conf = new FS::Conf;
+my $default_phone_countrycode =
+ $conf->config('default_phone_countrycode') || '1';
#XXX config
my @show_default = qw(
@@ -202,7 +228,7 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
});
die "Customer not found!" unless $cust_main;
- #historical?
+ #historical packages? It would help, it was still usage, it happened
foreach my $cust_pkg ( $cust_main->ncancelled_pkgs ) {
my @voip_pkgs =
@@ -227,7 +253,7 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
my @numbers = map {
my $number = $_->phonenum;
$number = $_->countrycode. $number
- unless $_->countrycode eq '1';
+ unless $_->countrycode eq $default_phone_countrycode;
$number;
}
@svc_phone;