correct nits in tax class selection
authorivan <ivan>
Fri, 29 Aug 2008 00:23:56 +0000 (00:23 +0000)
committerivan <ivan>
Fri, 29 Aug 2008 00:23:56 +0000 (00:23 +0000)
httemplate/elements/select-taxclass.html
httemplate/elements/tr-select-taxclass.html

index 2d0db30..2504a5b 100644 (file)
@@ -29,8 +29,9 @@ my $conf = new FS::Conf;
 
 unless ( $opt{'taxclasses'} ) {
 
-  my $sth = dbh->prepare('SELECT DISTINCT taxclass FROM cust_main_county')
-     or die dbh->errstr;
+  #my $sth = dbh->prepare('SELECT DISTINCT taxclass FROM cust_main_county')
+  my $sth = dbh->prepare('SELECT taxclass FROM part_pkg_taxclass')
+    or die dbh->errstr;
   $sth->execute or die $sth->errstr;
   my %taxclasses = map { $_->[0] => 1 } @{$sth->fetchall_arrayref};
   @{ $opt{'taxclasses'} } = grep $_, keys %taxclasses;
index 7006b1a..981c1a5 100644 (file)
@@ -2,7 +2,7 @@
 %      || scalar(@{ $opt{'taxclasses'} }) == 0
 % ) { 
 
-  <INPUT TYPE="hidden" NAME=""<% $opt{'element_name'} || $opt{'field'} || 'taxclass' %>" VALUE="<% $selected_taxclass %>">
+  <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'taxclass' %>" VALUE="<% $selected_taxclass %>">
 
 % } else {