diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-11-30 10:10:34 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-12-13 15:14:28 -0500 |
commit | a2e5f1d30aae23c3d4eb845fa2e9e5b2ebebcdff (patch) | |
tree | f544f35cf51abdd41fec800f6a81eacec848febf /httemplate/graph/cust_pkg.html | |
parent | aa916768d22f1f7dc9367962a5012adc91d95046 (diff) |
RT# 78019 - Added revenue difference to package churn report
Diffstat (limited to 'httemplate/graph/cust_pkg.html')
-rw-r--r-- | httemplate/graph/cust_pkg.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/graph/cust_pkg.html b/httemplate/graph/cust_pkg.html index 68c5b2136..6aea10492 100644 --- a/httemplate/graph/cust_pkg.html +++ b/httemplate/graph/cust_pkg.html @@ -13,7 +13,7 @@ 'disable_money' => 1, 'remove_empty' => (scalar(@group_keys) > 1 ? 1 : 0), 'nototal' => 1, - 'no_graph' => [ 1, 0, 0, 0, 0, 1 ], # don't graph 'active, total_revenue' + 'no_graph' => [ 1, 0, 0, 0, 0, 1, 1 ], # don't graph 'active, total_revenue, total_revenue_diff' &> <%init> @@ -34,7 +34,7 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { my $agentname = $agent ? $agent->agent.' ' : ''; -my @base_items = qw( active_pkg setup_pkg susp_pkg unsusp_pkg cancel_pkg total_revenue_pkg ); +my @base_items = qw( active_pkg setup_pkg susp_pkg unsusp_pkg cancel_pkg total_revenue_pkg total_revenue_diff ); my %base_labels = ( 'active_pkg' => 'Active packages', @@ -42,7 +42,8 @@ my %base_labels = ( 'susp_pkg' => 'Suspensions', 'unsusp_pkg' => 'Unsuspensions', 'cancel_pkg' => 'Cancellations', - 'total_revenue_pkg' => 'Total Revenue' + 'total_revenue_pkg' => 'Total Revenue', + 'total_revenue_diff' => 'Revenue Difference', ); my %base_colors = ( @@ -52,10 +53,12 @@ my %base_colors = ( 'unsusp_pkg' => '44ff44', #light green 'cancel_pkg' => 'cc0000', #red 'total_revenue_pkg' => '0000ff', #blue + 'total_revenue_diff' => '0000ff', #blue ); my $sprintf_fields = { 'total_revenue_pkg' => '%.2f', #format to 2 decimal places + 'total_revenue_diff' => '%.2f', #format to 2 decimal places }; my %base_links; |