avoid taxation on products with no assigned taxes
authorjeff <jeff>
Fri, 5 Dec 2008 17:19:55 +0000 (17:19 +0000)
committerjeff <jeff>
Fri, 5 Dec 2008 17:19:55 +0000 (17:19 +0000)
FS/FS/part_pkg.pm

index cab6436..f521d65 100644 (file)
@@ -872,7 +872,9 @@ sub has_taxproduct {
   my $self = shift;
 
   $self->taxproductnum ||
-  scalar(grep { $_ =~/^usage_taxproductnum_/ } keys %{ {$self->options} } )
+  scalar( grep { $_ =~/^usage_taxproductnum_/ && $self->option($_) } 
+          keys %{ {$self->options} }
+  )
 
 }