add net vs gross amounts to invoice report; make the "net sales" links on sales/credi...
[freeside.git] / httemplate / graph / money_time.cgi
index 2b98af8..c30ff20 100644 (file)
@@ -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')),
              )
 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;",
 );