X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fsearch%2Fprepaid_income.html;fp=httemplate%2Fsearch%2Fprepaid_income.html;h=03d121d70ec7bd5a0b8ed555f41b29ebc2f44cb1;hb=c7286ce9036d71665c2bfed9de93f87309b72d35;hp=ebac5a2a95e44eb845dc61d9645c567d9f141c93;hpb=a14db43cc4ec18badd0aff4fbc3e6738f4f63f6c;p=freeside.git diff --git a/httemplate/search/prepaid_income.html b/httemplate/search/prepaid_income.html index ebac5a2a9..03d121d70 100644 --- a/httemplate/search/prepaid_income.html +++ b/httemplate/search/prepaid_income.html @@ -129,6 +129,13 @@ if ( $cgi->param('status') =~ /^([a-z]+)$/ ) { push @where, FS::cust_main->cust_status_sql . " = '$status'"; } +if ( $cgi->param('cust_classnum') ) { + my @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); + $link .= ";cust_classnum=$_" foreach @classnums; + push @where, 'cust_main.classnum IN('.join(',',@classnums).')' + if @classnums; +} + my %total = (); my %total_legacy = (); foreach my $agentnum (@agentnums) {