diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-04-15 22:48:58 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-04-16 19:37:50 +0000 |
commit | 1a49f525882c638ef2df5b9732d2504f18c14da7 (patch) | |
tree | b835c20dd9ba29f24d51f44b0bd9b23fbeab5835 /httemplate/search | |
parent | f1dc2a40887b13ca52169ef2812795d9d686a1fd (diff) |
RT# 79353 Update discount graph - include waived setup fees
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/cust_bill_pkg_discount.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill_pkg_discount.html b/httemplate/search/cust_bill_pkg_discount.html index a669e6c33..691a11e60 100644 --- a/httemplate/search/cust_bill_pkg_discount.html +++ b/httemplate/search/cust_bill_pkg_discount.html @@ -224,7 +224,11 @@ if ( $cgi->param('usernum') =~ /^(\d+)$/ ) { } # Filter: Include waived setup fees -if ( !$cgi->param('include_waived_setup') ) { +if ( $cgi->param('include_waived_setup') ) { + # Filter a hidden fee attached to a package with a waived setup fee from + # causing the waived-fee for that package to be double-counted + push @where, 'cust_bill_pkg.pkgpart_override IS NULL'; +} else { push @where, "cust_bill_pkg_discount.pkgdiscountnum IS NOT NULL"; } |