diff options
author | jeff <jeff> | 2009-08-19 06:15:14 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-08-19 06:15:14 +0000 |
commit | 2e1d2a91264e8441bc31583be7352ae1b3c31bb8 (patch) | |
tree | 8dfcda6735d56064e96dcf8822f1dcb729a8b030 /httemplate/graph | |
parent | a8a4c0572d5b0335e06cdb3fd75226db956c007f (diff) |
option to count subpackages outside packages in sales report #5588
Diffstat (limited to 'httemplate/graph')
-rw-r--r-- | httemplate/graph/cust_bill_pkg.cgi | 11 | ||||
-rw-r--r-- | httemplate/graph/report_cust_bill_pkg.html | 5 |
2 files changed, 13 insertions, 3 deletions
diff --git a/httemplate/graph/cust_bill_pkg.cgi b/httemplate/graph/cust_bill_pkg.cgi index b655f1f01..021189abb 100644 --- a/httemplate/graph/cust_bill_pkg.cgi +++ b/httemplate/graph/cust_bill_pkg.cgi @@ -68,6 +68,9 @@ if ( $cgi->param('classnum') =~ /^(\d*)$/ ) { } #eslaf +my $use_override = 0; +$use_override = 1 if ( $cgi->param('use_override') ); + my $hue = 0; #my $hue_increment = 170; #my $hue_increment = 145; @@ -104,11 +107,13 @@ 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, + push @params, [ 'classnum' => $row_classnum, + 'agentnum' => $row_agentnum, + 'use_override' => $use_override, ]; - push @links, "$link;agentnum=$row_agentnum;classnum=$row_classnum;"; + push @links, "$link;agentnum=$row_agentnum;classnum=$row_classnum;". + "use_override=$use_override;"; @recur_colors = ($col_scheme->colors)[0,4,8,1,5,9] unless @recur_colors; diff --git a/httemplate/graph/report_cust_bill_pkg.html b/httemplate/graph/report_cust_bill_pkg.html index 5193bf4a3..073f86773 100644 --- a/httemplate/graph/report_cust_bill_pkg.html +++ b/httemplate/graph/report_cust_bill_pkg.html @@ -25,6 +25,11 @@ </TR> --> +<TR> + <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="use_override" VALUE="1"></TD> + <TD>Separate sub-packages from parents</TD> +</TR> + </TABLE> <BR><INPUT TYPE="submit" VALUE="Display"> |