projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sales by ad source report: filter by ad source, #17971
[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
3cb434c
..
77b4860
100644
(file)
--- a/
httemplate/search/cust_bill_pkg_referral.html
+++ b/
httemplate/search/cust_bill_pkg_referral.html
@@
-146,6
+146,16
@@
if ( @status_where ) {
') IN (' . join(',', @status_where) .')';
}
') IN (' . join(',', @status_where) .')';
}
+my @refnum;
+foreach my $refnum ($cgi->param('refnum')) {
+ if ( $refnum =~ /^\d+$/ ) {
+ push @refnum, $refnum;
+ }
+}
+if ( @refnum ) {
+ push @where, 'cust_main.refnum IN ('.join(',', @refnum).')';
+}
+
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
push @where, "cust_main.agentnum = $1";
}
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
push @where, "cust_main.agentnum = $1";
}