fix "missing FROM-clause entry for table cust_pkg" error pulling up credits from...
[freeside.git] / httemplate / search / cust_credit_bill_pkg.html
index 0cdd8de..4a14893 100644 (file)
@@ -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') ) {