[freeside-commits] freeside/httemplate/search report_tax.cgi, 1.46, 1.47
Ivan,,,
ivan at wavetail.420.am
Sun Nov 2 12:03:32 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv15384/search
Modified Files:
report_tax.cgi
Log Message:
(and fix the line-item links too, whew) 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.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- report_tax.cgi 2 Nov 2008 19:40:35 -0000 1.46
+++ report_tax.cgi 2 Nov 2008 20:03:30 -0000 1.47
@@ -492,8 +492,16 @@
my $base_label = getlabel($r, 'no_taxclass'=>1 );
$base_regions{$base_label}->{'label'} = $base_label;
+
$base_regions{$base_label}->{'url_param'} =
- join(';', map "$_=".$r->$_(), qw( county state country ) );
+ join(';', map "$_=".$r->$_(), qw( county state country ) ); #taxname???
+
+ if ( $r->taxclass ) {
+ $base_regions{$base_label}->{'url_param'} .= ';taxclass='. $r->taxclass;
+ } else {
+ $base_regions{$base_label}->{'url_param'} .= ';taxclassNULL=1'
+ }
+
$base_regions{$base_label}->{'tax'} += $x;
$tax += $x;
}
More information about the freeside-commits
mailing list