fix totals of credited amounts on tax report, #37088
authorMark Wells <mark@freeside.biz>
Fri, 23 Oct 2015 23:27:29 +0000 (16:27 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 23 Oct 2015 23:28:05 +0000 (16:28 -0700)
FS/FS/Report/Tax.pm

index a892a6b..93fc644 100644 (file)
@@ -237,7 +237,7 @@ sub report_internal {
     LEFT JOIN ($sales_credit) AS sales_credit USING (billpkgnum)
     LEFT JOIN ($exempt_credit) AS exempt_credit USING (billpkgnum, taxnum)
     $join_cust_pkg $where AND $nottax
-    $group
+    $group_all
     ";
 
   # also include the exempt-sales credit amount, for the credit report
@@ -256,7 +256,7 @@ sub report_internal {
     LEFT JOIN ($exempt_credit) AS exempt_credit USING (taxnum)
     JOIN cust_bill_pkg USING (billpkgnum)
     $join_cust_pkg $where AND $nottax
-    $group
+    $group_all
     ";
 
   # taxable sales