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_daily.cgi | |
parent | a14db43cc4ec18badd0aff4fbc3e6738f4f63f6c (diff) |
filter by customer class on all financial reports, #20573
Diffstat (limited to 'httemplate/graph/money_time_daily.cgi')
-rw-r--r-- | httemplate/graph/money_time_daily.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/graph/money_time_daily.cgi b/httemplate/graph/money_time_daily.cgi index 4d16ff871..0fdbd895e 100644 --- a/httemplate/graph/money_time_daily.cgi +++ b/httemplate/graph/money_time_daily.cgi @@ -7,6 +7,7 @@ 'colors' => \%color, 'links' => \%link, 'agentnum' => $agentnum, + 'cust_classnum'=> \@classnums, 'nototal' => scalar($cgi->param('12mo')), 'daily' => 1, 'start_day' => $smday, @@ -32,6 +33,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($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); my ($ssec,$smin,$shour,$smday,$smon,$syear,$swday,$syday,$sisdst) = localtime($beginning); |