fix "tax invoiced" links on tax report for the taxclass + not taxclass in same region...
authorivan <ivan>
Fri, 16 Dec 2011 04:48:36 +0000 (04:48 +0000)
committerivan <ivan>
Fri, 16 Dec 2011 04:48:36 +0000 (04:48 +0000)
httemplate/search/cust_bill_pkg.cgi

index 15edba0..13fb9f8 100644 (file)
@@ -300,8 +300,11 @@ if ( $cgi->param('out') ) {
     #warn "neither nottax nor istax parameters specified";
   }
 
-  if ( $cgi->param('taxclassNULL') ) {
-
+  if ( $cgi->param('taxclassNULL')
+       && ! $cgi->param('istax')  #no part_pkg.taxclass in this case
+                                  #(see comment above?)
+     )
+  {
     my %hash = ( 'country' => scalar($cgi->param('country')) );
     foreach (qw( state county )) {
       $hash{$_} = scalar($cgi->param($_)) if $cgi->param($_);