diff options
author | jeff <jeff> | 2008-12-05 17:19:55 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-12-05 17:19:55 +0000 |
commit | 6e44387ee72331ece3a9ac00ec9b1d9b818c4943 (patch) | |
tree | 159c841da3c34984e25303327e91981c8e74b85d | |
parent | 1beb98b1a37a2c8b7d313334dcdc8810b8fe33c9 (diff) |
avoid taxation on products with no assigned taxes
-rw-r--r-- | FS/FS/part_pkg.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index cab64367d..f521d65e2 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -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} } + ) } |