[freeside-commits] freeside/httemplate/search report_tax.cgi, 1.45, 1.46

Ivan,,, ivan at wavetail.420.am
Sun Nov 2 11:40:38 PST 2008


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv15066

Modified Files:
	report_tax.cgi 
Log Message:
(and fix the total too) fix overreporting of tax invoiced when using & reporting with taxclasses, RT#4131

Index: report_tax.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_tax.cgi,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- report_tax.cgi	2 Nov 2008 19:26:49 -0000	1.45
+++ report_tax.cgi	2 Nov 2008 19:40:35 -0000	1.46
@@ -477,7 +477,7 @@
 
   my $x = &{$_taxamount_sub}($r);
 
-  $tax += $x;
+  $tax += $x unless $cgi->param('show_taxclasses');
   $regions{$label}->{'tax'} += $x;
 
 }
@@ -495,6 +495,7 @@
     $base_regions{$base_label}->{'url_param'} =
       join(';', map "$_=".$r->$_(), qw( county state country ) );
     $base_regions{$base_label}->{'tax'} += $x;
+    $tax += $x;
   }
 
 }



More information about the freeside-commits mailing list