X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cdr.html;h=0eefd4ce70a487195a19e7b13e2275769f905b77;hb=a81ff71c918e7a82ccd6646351734ce74e8e4dd3;hp=f305ed9135b9d06fba43b5f152fd7efd63cfb8cd;hpb=d8c2d2e79098ec7e0936b50f215eb41de00bc122;p=freeside.git
diff --git a/httemplate/search/report_cdr.html b/httemplate/search/report_cdr.html
index f305ed913..0eefd4ce7 100644
--- a/httemplate/search/report_cdr.html
+++ b/httemplate/search/report_cdr.html
@@ -24,8 +24,12 @@
@@ -144,6 +148,11 @@
+ Acct Code (one per-line): |
+ |
+
+
+
|
@@ -181,6 +190,10 @@ die "access denied"
my @fields = fields('cdr');
my $labels = FS::cdr->table_info->{'fields'};
+my $conf = new FS::Conf;
+my $default_phone_countrycode =
+ $conf->config('default_phone_countrycode') || '1';
+
#XXX config
my @show_default = qw(
calldate clid src dst dcontext charged_party
@@ -213,7 +226,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 =
@@ -238,7 +251,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;