summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-12-22 17:29:23 -0800
committerIvan Kohler <ivan@freeside.biz>2016-12-22 17:29:23 -0800
commit58c17d959b59b61da9a5b6b752bb8c295d61fc63 (patch)
treef2e3b93c9b1ce1129d3f8e7e7135b404dcbe9c9c
parentc3b6a3e02cbe18b67714f11d502492e234d7ac77 (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.html2
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 0cdd8de..4a14893 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') ) {