X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fgraph%2Fmoney_time.cgi;h=c30ff207a9148988adbeda8732d75fe2a03ffd5b;hb=1f8e84ae7baed672430fd6ba261f7e58e0424a99;hp=2b98af838a582e16ced6b0efad197596ecd27d4c;hpb=590603ecaea3184f64530755a76626be8205da49;p=freeside.git diff --git a/httemplate/graph/money_time.cgi b/httemplate/graph/money_time.cgi index 2b98af838..c30ff207a 100644 --- a/httemplate/graph/money_time.cgi +++ b/httemplate/graph/money_time.cgi @@ -6,10 +6,6 @@ 'graph_labels' => \%graph_label, 'colors' => \%color, 'links' => \%link, - 'start_month' => $smonth, - 'start_year' => $syear, - 'end_month' => $emonth, - 'end_year' => $eyear, 'agentnum' => $agentnum, 'nototal' => scalar($cgi->param('12mo')), ) @@ -19,14 +15,6 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); -#find first month -my $syear = $cgi->param('start_year'); # || 1899+$curyear; -my $smonth = $cgi->param('start_month'); # || $curmon+1; - -#find last month -my $eyear = $cgi->param('end_year'); # || 1900+$curyear; -my $emonth = $cgi->param('end_month'); # || $curmon+1; - #XXX or virtual my( $agentnum, $agent ) = ('', ''); if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { @@ -77,6 +65,7 @@ $color{$_.'_12mo'} = $color{$_} my %link = ( 'invoiced' => "${p}search/cust_bill.html?agentnum=$agentnum;", + 'netsales' => "${p}search/cust_bill.html?agentnum=$agentnum;net=1;", 'credits' => "${p}search/cust_credit.html?agentnum=$agentnum;", 'payments' => "${p}search/cust_pay.cgi?magic=_date;agentnum=$agentnum;", );