diff options
Diffstat (limited to 'httemplate/search/prepaid_income.html')
-rw-r--r-- | httemplate/search/prepaid_income.html | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |