fix tax detail reporting fallout from package level credits feature, RT#18676
authorIvan Kohler <ivan@freeside.biz>
Fri, 21 Dec 2012 04:52:30 +0000 (20:52 -0800)
committerIvan Kohler <ivan@freeside.biz>
Fri, 21 Dec 2012 04:52:30 +0000 (20:52 -0800)
httemplate/search/cust_bill_pkg.cgi

index 34c89e5..5f02588 100644 (file)
@@ -452,7 +452,7 @@ if ( $cgi->param('nottax') ) {
 
   } elsif ( $cgi->param('out') ) {
 
-    $join_pkg = '
+    $join_pkg .= '
       LEFT JOIN cust_bill_pkg_tax_location USING (billpkgnum)
     ';
     push @where, 'cust_bill_pkg_tax_location.billpkgnum IS NULL';
@@ -463,7 +463,7 @@ if ( $cgi->param('nottax') ) {
 
   } else { # not locationtaxid or 'out'--the normal case
 
-    $join_pkg = '
+    $join_pkg .= '
       LEFT JOIN cust_bill_pkg_tax_location USING (billpkgnum)
       JOIN cust_main_county           USING (taxnum)
     ';