summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorivan <ivan>2008-06-05 19:24:33 +0000
committerivan <ivan>2008-06-05 19:24:33 +0000
commit1203e278e2ec38fcf1468da2e4f10862004bebeb (patch)
tree0a9c3155181c6443f5e6faacfa4911e944435697 /httemplate/search
parent3b54099d7b5532a411bb477006d78844c0597745 (diff)
voxlinesystems CDRs and quantity bs
Diffstat (limited to 'httemplate/search')
-rw-r--r--httemplate/search/cdr.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html
index 8079b5b98..4bac8c1f9 100644
--- a/httemplate/search/cdr.html
+++ b/httemplate/search/cdr.html
@@ -61,7 +61,7 @@ push @search, FS::UI::Web::parse_lt_gt($cgi, 'duration');
push @search, FS::UI::Web::parse_lt_gt($cgi, 'billsec');
###
-# src/dest
+# src/dest/charged_party
###
my @qsearch = @search;
@@ -78,6 +78,18 @@ if ( $cgi->param('dst') =~ /^\s*([\d\-\+ ]+)\s*$/ ) {
push @search, "dst = '$dst'";
}
+if ( $cgi->param('charged_party') =~ /^\s*([\d\-\+\ ]+)\s*$/ ) {
+ ( my $charged_party = $1 ) =~ s/\D//g;
+ #$hashref->{'charged_party'} = $charged_party;
+ #push @search, "charged_party = '$charged_party'";
+ #XXX countrycode
+ push @search, " ( charged_party = '$charged_party'
+ OR charged_party = '1$charged_party' ) ";
+ push @qsearch, " ( charged_party = '$charged_party'
+ OR charged_party = '1$charged_party' ) ";
+}
+
+
###
# finish it up
###