fix application of credits to tax-exempt sales items, #33772, from #18509
authorMark Wells <mark@freeside.biz>
Mon, 2 Mar 2015 21:16:07 +0000 (13:16 -0800)
committerMark Wells <mark@freeside.biz>
Mon, 2 Mar 2015 21:16:07 +0000 (13:16 -0800)
FS/FS/cust_credit_bill_pkg.pm

index 1f741b2..080a83a 100644 (file)
@@ -112,7 +112,7 @@ sub insert {
 
   if ($taxable_per_month >= 0) {  #panic if its subzero?
     my $groupby = join(',',
 
   if ($taxable_per_month >= 0) {  #panic if its subzero?
     my $groupby = join(',',
-      qw(taxnum year month exempt_monthly exempt_cust 
+      qw(taxnum taxtype year month exempt_monthly exempt_cust 
          exempt_cust_taxname exempt_setup exempt_recur));
     my $sum = 'SUM(amount)';
     my @exemptions = qsearch(
          exempt_cust_taxname exempt_setup exempt_recur));
     my $sum = 'SUM(amount)';
     my @exemptions = qsearch(