summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_credit.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-12-31 14:03:43 -0800
committerMark Wells <mark@freeside.biz>2012-12-31 14:03:43 -0800
commitc7286ce9036d71665c2bfed9de93f87309b72d35 (patch)
tree59ef48f8fd7688cf7039a0d2e5500b84ae076543 /httemplate/search/cust_credit.html
parenta14db43cc4ec18badd0aff4fbc3e6738f4f63f6c (diff)
filter by customer class on all financial reports, #20573
Diffstat (limited to 'httemplate/search/cust_credit.html')
-rwxr-xr-xhttemplate/search/cust_credit.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html
index 38f03491d..f5d8fa19f 100755
--- a/httemplate/search/cust_credit.html
+++ b/httemplate/search/cust_credit.html
@@ -103,6 +103,12 @@ if ( $cgi->param('refnum') && $cgi->param('refnum') =~ /^(\d+)$/ ) {
$title = $part_referral->referral. " $title";
}
+if ( $cgi->param('cust_classnum') ) {
+ my @classnums = grep /^\d+$/, $cgi->param('cust_classnum');
+ push @search, 'cust_main.classnum IN('.join(',',@classnums).')'
+ if @classnums;
+}
+
if ( $unapplied ) {
push @search, FS::cust_credit->unapplied_sql . ' > 0';
}