[freeside-commits] freeside/httemplate/search cdr.html,1.9,1.10
Ivan,,,
ivan at wavetail.420.am
Thu Jun 5 12:24:34 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv22150/httemplate/search
Modified Files:
cdr.html
Log Message:
voxlinesystems CDRs and quantity bs
Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- cdr.html 26 Mar 2008 02:27:06 -0000 1.9
+++ cdr.html 5 Jun 2008 19:24:32 -0000 1.10
@@ -61,7 +61,7 @@
push @search, FS::UI::Web::parse_lt_gt($cgi, 'billsec');
###
-# src/dest
+# src/dest/charged_party
###
my @qsearch = @search;
@@ -78,6 +78,18 @@
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
###
More information about the freeside-commits
mailing list