[freeside-commits] freeside/httemplate/search cdr.html, 1.5.2.2, 1.5.2.3

Ivan,,, ivan at wavetail.420.am
Thu Jun 5 12:24:39 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv22157/httemplate/search

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	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.5.2.2
retrieving revision 1.5.2.3
diff -u -d -r1.5.2.2 -r1.5.2.3
--- cdr.html	26 Mar 2008 02:27:07 -0000	1.5.2.2
+++ cdr.html	5 Jun 2008 19:24:37 -0000	1.5.2.3
@@ -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