From 6e44387ee72331ece3a9ac00ec9b1d9b818c4943 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 5 Dec 2008 17:19:55 +0000 Subject: [PATCH] avoid taxation on products with no assigned taxes --- FS/FS/part_pkg.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} } + ) } -- 2.11.0