projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add advanced phone number search, RT#21054
[freeside.git]
/
httemplate
/
search
/
cust_bill_pkg_referral.html
diff --git
a/httemplate/search/cust_bill_pkg_referral.html
b/httemplate/search/cust_bill_pkg_referral.html
index
77b4860
..
1289ff7
100644
(file)
--- a/
httemplate/search/cust_bill_pkg_referral.html
+++ b/
httemplate/search/cust_bill_pkg_referral.html
@@
-156,6
+156,11
@@
if ( @refnum ) {
push @where, 'cust_main.refnum IN ('.join(',', @refnum).')';
}
push @where, 'cust_main.refnum IN ('.join(',', @refnum).')';
}
+my @cust_classnums = grep /^\d+$/, $cgi->param('cust_classnum');
+if ( @cust_classnums ) {
+ push @where, 'cust_main.classnum IN ('.join(',', @cust_classnums).')';
+}
+
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
push @where, "cust_main.agentnum = $1";
}
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
push @where, "cust_main.agentnum = $1";
}