fix "missing FROM-clause entry for table cust_pkg" error pulling up credits from...
authorIvan Kohler <ivan@freeside.biz>
Fri, 23 Dec 2016 01:29:23 +0000 (17:29 -0800)
committerIvan Kohler <ivan@freeside.biz>
Fri, 23 Dec 2016 01:29:23 +0000 (17:29 -0800)
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";
     }
 
       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') ) {
     $join_pkg .= ' LEFT JOIN tax_rate_location USING ( taxratelocationnum ) ';
 
   } elsif ( $conf->exists('tax-pkg_address') ) {