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/graph/money_time.cgi | |
| parent | a14db43cc4ec18badd0aff4fbc3e6738f4f63f6c (diff) | |
filter by customer class on all financial reports, #20573
Diffstat (limited to 'httemplate/graph/money_time.cgi')
| -rw-r--r-- | httemplate/graph/money_time.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/graph/money_time.cgi b/httemplate/graph/money_time.cgi index 166735fc6..9071fc7b9 100644 --- a/httemplate/graph/money_time.cgi +++ b/httemplate/graph/money_time.cgi @@ -8,6 +8,7 @@ 'links' => \%link, 'agentnum' => $agentnum, 'refnum' => $refnum, + 'cust_classnum'=> \@classnums, 'nototal' => scalar($cgi->param('12mo')), ) %> @@ -25,6 +26,11 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { } my $agentname = $agent ? $agent->agent.' ' : ''; +my @classnums; +if ( $cgi->param('cust_classnum') ) { + @classnums = grep /^\d+$/, $cgi->param('cust_classnum'); +} + my( $refnum, $part_referral ) = ('', ''); if ( $cgi->param('refnum') =~ /^(\d+)$/ ) { $refnum = $1; @@ -93,6 +99,7 @@ $color{$_.'_12mo'} = $color{$_} foreach keys %color; my $ar = "agentnum=$agentnum;refnum=$refnum"; +$ar .= ";cust_classnum=$_" foreach @classnums; my %link = ( 'invoiced' => "${p}search/cust_bill.html?$ar;", |
