diff options
author | ivan <ivan> | 2009-12-03 19:06:51 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-03 19:06:51 +0000 |
commit | 1c503278008cf1cff5eb82f85349f9c5e270a156 (patch) | |
tree | 72c17c3d05bb6cf041aa074682c20617026799d9 /httemplate | |
parent | aa3c89b8cd643ece05fbe041ed2b604b31ffd33a (diff) |
average per cust_pkg option for peter
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/graph/cust_bill_pkg.cgi | 17 | ||||
-rw-r--r-- | httemplate/graph/report_cust_bill_pkg.html | 4 |
2 files changed, 12 insertions, 9 deletions
diff --git a/httemplate/graph/cust_bill_pkg.cgi b/httemplate/graph/cust_bill_pkg.cgi index 832660ffd..2346d9416 100644 --- a/httemplate/graph/cust_bill_pkg.cgi +++ b/httemplate/graph/cust_bill_pkg.cgi @@ -68,11 +68,9 @@ if ( $cgi->param('classnum') =~ /^(\d*)$/ ) { } #eslaf -my $use_override = 0; -$use_override = 1 if ( $cgi->param('use_override') ); - -my $use_usage = 0; -$use_usage = 1 if ( $cgi->param('use_usage') ); +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; @@ -113,10 +111,11 @@ foreach my $agent ( $sel_agent || qsearch('agent', { 'disabled' => '' } ) ) { my $row_classnum = ref($pkg_class) ? $pkg_class->classnum : 0; my $row_agentnum = $agent->agentnum; - push @params, [ 'classnum' => $row_classnum, - 'agentnum' => $row_agentnum, - 'use_override' => $use_override, - 'use_usage' => $component, + push @params, [ 'classnum' => $row_classnum, + 'agentnum' => $row_agentnum, + 'use_override' => $use_override, + 'use_usage' => $component, + 'average_per_cust_pkg' => $average_per_cust_pkg, ]; push @links, "$link;agentnum=$row_agentnum;classnum=$row_classnum;". diff --git a/httemplate/graph/report_cust_bill_pkg.html b/httemplate/graph/report_cust_bill_pkg.html index 51655a925..4a6433272 100644 --- a/httemplate/graph/report_cust_bill_pkg.html +++ b/httemplate/graph/report_cust_bill_pkg.html @@ -35,6 +35,10 @@ <TD>Separate rated usage from recurring fees</TD> </TR> +<TR> + <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="average_per_cust_pkg" VALUE="1"></TD> + <TD>Average per customer package</TD> +</TR> </TABLE> |