diff options
Diffstat (limited to 'httemplate/search/cdr.html')
-rw-r--r-- | httemplate/search/cdr.html | 14 |
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 ### |