From: jeff Date: Fri, 5 Dec 2008 17:19:55 +0000 (+0000) Subject: avoid taxation on products with no assigned taxes X-Git-Tag: root_of_webpay_support~208 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6e44387ee72331ece3a9ac00ec9b1d9b818c4943 avoid taxation on products with no assigned taxes --- 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} } + ) }