summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-taxclass.html
diff options
context:
space:
mode:
authorivan <ivan>2009-06-30 19:38:57 +0000
committerivan <ivan>2009-06-30 19:38:57 +0000
commit443150b6184876c967adffa199c20f53d5b76075 (patch)
tree69cb79e2d3e8dc593916f81c24c60f55e9eba937 /httemplate/elements/select-taxclass.html
parenta70239efdaeddf0b20fea7f5126a2e3f0a962eb6 (diff)
disabling a taxclass, RT#5472
Diffstat (limited to 'httemplate/elements/select-taxclass.html')
-rw-r--r--httemplate/elements/select-taxclass.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/elements/select-taxclass.html b/httemplate/elements/select-taxclass.html
index 2504a5b1d..fb09cfdb9 100644
--- a/httemplate/elements/select-taxclass.html
+++ b/httemplate/elements/select-taxclass.html
@@ -30,9 +30,9 @@ my $conf = new FS::Conf;
unless ( $opt{'taxclasses'} ) {
#my $sth = dbh->prepare('SELECT DISTINCT taxclass FROM cust_main_county')
- my $sth = dbh->prepare('SELECT taxclass FROM part_pkg_taxclass')
+ my $sth = dbh->prepare("SELECT taxclass FROM part_pkg_taxclass WHERE disabled IS NULL OR disabled = '' OR taxclass = ?")
or die dbh->errstr;
- $sth->execute or die $sth->errstr;
+ $sth->execute($selected_taxclass) or die $sth->errstr;
my %taxclasses = map { $_->[0] => 1 } @{$sth->fetchall_arrayref};
@{ $opt{'taxclasses'} } = grep $_, keys %taxclasses;