diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-12-22 17:29:26 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-12-22 17:29:26 -0800 |
commit | 7d7ec20bcb3105021ac074d1e86896aa2a5104be (patch) | |
tree | bf8dcdf541e0e863fc945fa151e5531b00446c0c | |
parent | c48c387bf982b95dbd2f0e26e5f4fa967884af35 (diff) |
fix "missing FROM-clause entry for table cust_pkg" error pulling up credits from vendor tax report, RT#73852
-rw-r--r-- | httemplate/search/cust_credit_bill_pkg.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/search/cust_credit_bill_pkg.html b/httemplate/search/cust_credit_bill_pkg.html index 0cdd8defd..4a14893e8 100644 --- a/httemplate/search/cust_credit_bill_pkg.html +++ b/httemplate/search/cust_credit_bill_pkg.html @@ -457,6 +457,8 @@ if ( $cgi->param('nottax') ) { push @where, "billpkgtaxratelocationnum IS NULL"; } + $join_pkg .= ' LEFT JOIN cust_pkg USING ( pkgnum ) '; + $join_pkg .= ' LEFT JOIN tax_rate_location USING ( taxratelocationnum ) '; } elsif ( $conf->exists('tax-pkg_address') ) { |