[freeside-commits] freeside/httemplate/graph cust_bill_pkg.cgi, 1.11, 1.12
Ivan,,,
ivan at wavetail.420.am
Thu Dec 3 11:23:01 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/graph
In directory wavetail.420.am:/tmp/cvs-serv23717/httemplate/graph
Modified Files:
cust_bill_pkg.cgi
Log Message:
average per cust_pkg option for peter
Index: cust_bill_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/graph/cust_bill_pkg.cgi,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- cust_bill_pkg.cgi 3 Dec 2009 19:06:51 -0000 1.11
+++ cust_bill_pkg.cgi 3 Dec 2009 19:22:59 -0000 1.12
@@ -1,5 +1,5 @@
<% include('elements/monthly.html',
- 'title' => $title. 'Sales Report (Gross)',
+ 'title' => $title,
'graph_type' => 'Mountain',
'items' => \@items,
'params' => \@params,
@@ -21,6 +21,10 @@
my $link = "${p}search/cust_bill_pkg.cgi?nottax=1;include_comp_cust=1";
my $bottom_link = "$link;";
+my $use_override = $cgi->param('use_override') ? 1 : 0;
+my $use_usage = $cgi->param('use_usage') ? 1 : 0;
+my $average_per_cust_pkg = $cgi->param('average_per_cust_pkg') ? 1 : 0;
+
#XXX or virtual
my( $agentnum, $sel_agent ) = ('', '');
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
@@ -30,6 +34,8 @@
die "agentnum $agentnum not found!" unless $sel_agent;
}
my $title = $sel_agent ? $sel_agent->agent.' ' : '';
+$title .= 'Sales Report (Gross)';
+$title .= ', average per customer package' if $average_per_cust_pkg;
#classnum (here)
# 0: all classes
@@ -68,10 +74,6 @@
}
#eslaf
-my $use_override = $cgi->param('use_override') ? 1 : 0;
-my $use_usage = $cgi->param('use_usage') ? 1 : 0;
-my $average_per_cust_pkg = $cgi->param('average_per_cust_pkg') ? 1 : 0;
-
my $hue = 0;
#my $hue_increment = 170;
#my $hue_increment = 145;
More information about the freeside-commits
mailing list