[freeside-commits] freeside/httemplate/search cdr.html,1.21,1.22
Ivan,,,
ivan at wavetail.420.am
Mon Aug 16 12:45:27 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv18961/httemplate/search
Modified Files:
cdr.html
Log Message:
fix search of pending/billed CDRs to find src field too, RT#9640
Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -d -r1.21 -r1.22
--- cdr.html 10 Jun 2010 04:26:35 -0000 1.21
+++ cdr.html 16 Aug 2010 19:45:25 -0000 1.22
@@ -172,13 +172,26 @@
#push @search, "charged_party = '$charged_party'";
#XXX countrycode
- my $search = " ( charged_party = '$charged_party'
- OR charged_party = '1$charged_party' ) ";
+ my $search = " ( charged_party IN ('$charged_party', '1$charged_party') )";
push @search, $search;
push @qsearch, $search;
}
+if ( $cgi->param('charged_party_or_src') =~ /^\s*([\d\-\+\ ]+)\s*$/ ) {
+ ( my $charged_party = $1 ) =~ s/\D//g;
+ #$hashref->{'charged_party'} = $charged_party;
+ #push @search, "charged_party = '$charged_party'";
+ #XXX countrycode
+
+ my $search = " ( charged_party IN ('$charged_party', '1$charged_party')
+ OR src IN ('$charged_party', '1$charged_party') )";
+
+ push @search, $search;
+ push @qsearch, $search;
+}
+
+
###
# cdrbatchnum (or legacy cdrbatch)
###
More information about the freeside-commits
mailing list