[freeside-commits] freeside/httemplate/graph cust_bill_pkg.cgi, 1.7, 1.8
Ivan,,,
ivan at wavetail.420.am
Tue Jun 23 18:40:14 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/graph
In directory wavetail.420.am:/tmp/cvs-serv11117
Modified Files:
cust_bill_pkg.cgi
Log Message:
fix total links on agent-specific sales report, RT#5449
Index: cust_bill_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/graph/cust_bill_pkg.cgi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cust_bill_pkg.cgi 25 May 2009 22:42:21 -0000 1.7
+++ cust_bill_pkg.cgi 24 Jun 2009 01:40:12 -0000 1.8
@@ -18,18 +18,19 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+my $link = "${p}search/cust_bill_pkg.cgi?nottax=1;include_comp_cust=1";
+my $bottom_link = "$link;";
+
#XXX or virtual
my( $agentnum, $sel_agent ) = ('', '');
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
$agentnum = $1;
+ $bottom_link .= "agentnum=$agentnum;";
$sel_agent = qsearchs('agent', { 'agentnum' => $agentnum } );
die "agentnum $agentnum not found!" unless $sel_agent;
}
my $title = $sel_agent ? $sel_agent->agent.' ' : '';
-my $link = "${p}search/cust_bill_pkg.cgi?nottax=1;include_comp_cust=1";
-my $bottom_link = "$link;";
-
#classnum (here)
# 0: all classes
# not specified: empty class
@@ -94,7 +95,6 @@
push @items, 'cust_bill_pkg';
-
push @labels,
( $sel_agent ? '' : $agent->agent.' ' ).
( $classnum eq '0'
More information about the freeside-commits
mailing list