diff options
author | ivan <ivan> | 2008-09-10 07:32:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-09-10 07:32:17 +0000 |
commit | 82b5769d09d7ebe5b204d0cd71da01be61588702 (patch) | |
tree | 58980977b406fa4294e7a50360f2ee832eebc1e4 /FS | |
parent | 864b55487e80fa1df3f8d12534856099f6ed0465 (diff) |
well, allow things to work for now so work can get done
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_pkg.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index 0591af487..d8b5e9c69 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -956,11 +956,11 @@ sub part_pkg_taxrate { ). ')'; # much more CCH oddness in m2m -- this is kludgy + my @tpnums = $self->_expand_cch_taxproductnum($class); $extra_sql .= ' AND ('. - join(' OR ', map{ "taxproductnum = $_" } - $self->_expand_cch_taxproductnum($class) - ). - ')'; + join(' OR ', map{ "taxproductnum = $_" } @tpnums ). + ')' + if @tpnums; my $addl_from = 'LEFT JOIN part_pkg_taxproduct USING ( taxproductnum )'; my $order_by = 'ORDER BY taxclassnum, length(geocode) desc, length(taxproduct) desc'; |