diff options
author | Mark Wells <mark@freeside.biz> | 2012-12-31 14:03:43 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-12-31 14:03:43 -0800 |
commit | c7286ce9036d71665c2bfed9de93f87309b72d35 (patch) | |
tree | 59ef48f8fd7688cf7039a0d2e5500b84ae076543 /httemplate/search/cust_bill_pkg_referral.html | |
parent | a14db43cc4ec18badd0aff4fbc3e6738f4f63f6c (diff) |
filter by customer class on all financial reports, #20573
Diffstat (limited to 'httemplate/search/cust_bill_pkg_referral.html')
-rw-r--r-- | httemplate/search/cust_bill_pkg_referral.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/search/cust_bill_pkg_referral.html b/httemplate/search/cust_bill_pkg_referral.html index 77b486021..1289ff7ee 100644 --- 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).')'; } +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"; } |