projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fbd3dfd
)
lastapp searching, RT#12181
author
ivan
<ivan>
Mon, 2 May 2011 16:24:50 +0000
(16:24 +0000)
committer
ivan
<ivan>
Mon, 2 May 2011 16:24:50 +0000
(16:24 +0000)
httemplate/search/cdr.html
patch
|
blob
|
history
httemplate/search/report_cdr.html
patch
|
blob
|
history
diff --git
a/httemplate/search/cdr.html
b/httemplate/search/cdr.html
index
bf59ff6
..
7e62447
100644
(file)
--- a/
httemplate/search/cdr.html
+++ b/
httemplate/search/cdr.html
@@
-182,7
+182,7
@@
if ( $cgi->param('dst') ) {
if ( $cgi->param('dcontext') =~ /^\s*(.+)\s*$/ ) {
my $dcontext = $1;
$hashref->{'dcontext'} = $dcontext;
if ( $cgi->param('dcontext') =~ /^\s*(.+)\s*$/ ) {
my $dcontext = $1;
$hashref->{'dcontext'} = $dcontext;
- push @search,
"dcontext = '$dcontext'"
;
+ push @search,
'dcontext = '. dbh->quote($dcontext)
;
}
if ( $cgi->param('charged_party') ) {
}
if ( $cgi->param('charged_party') ) {
@@
-208,6
+208,12
@@
if ( $cgi->param('charged_party_or_src') ) {
push @qsearch, $search;
}
push @qsearch, $search;
}
+if ( $cgi->param('lastapp') =~ /^\s*(.+)\s*$/ ) {
+ my $lastapp = $1;
+ $hashref->{'lastapp'} = $lastapp;
+ push @search, 'lastapp = '. dbh->quote($lastapp);
+}
+
if ( $cgi->param('svcnum') =~ /^([\d, ]+)$/ ) {
my $svcnum = $1;
my $search = "svcnum IN ($svcnum)";
if ( $cgi->param('svcnum') =~ /^([\d, ]+)$/ ) {
my $svcnum = $1;
my $search = "svcnum IN ($svcnum)";
diff --git
a/httemplate/search/report_cdr.html
b/httemplate/search/report_cdr.html
index
866606c
..
04cd417
100644
(file)
--- a/
httemplate/search/report_cdr.html
+++ b/
httemplate/search/report_cdr.html
@@
-70,9
+70,16
@@
</TR>
<TR>
</TR>
<TR>
- <TD ALIGN="right">
Charged Party or Source #
: </TD>
+ <TD ALIGN="right">
Last Application
: </TD>
<TD>
<TD>
- <INPUT TYPE="text" NAME="charged_party_or_src" VALUE="<% join(',', @charged_party_or_src ) |h %>" >
+ <INPUT TYPE="text" NAME="lastapp" VALUE="" >
+ </TD>
+ </TR>
+
+ <TR>
+ <TD ALIGN="right">Freeside service #: </TD>
+ <TD>
+ <INPUT TYPE="text" NAME="svcnum" VALUE="<% join(',', @svcnum ) %>" >
</TD>
</TR>
</TD>
</TR>