[freeside-commits] freeside/httemplate/elements tr-select-taxclass.html, 1.4, 1.5 select-taxclass.html, 1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Thu Aug 28 17:23:58 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv28865
Modified Files:
tr-select-taxclass.html select-taxclass.html
Log Message:
correct nits in tax class selection
Index: select-taxclass.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-taxclass.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- select-taxclass.html 16 Apr 2008 20:34:41 -0000 1.6
+++ select-taxclass.html 29 Aug 2008 00:23:56 -0000 1.7
@@ -29,8 +29,9 @@
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: tr-select-taxclass.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-select-taxclass.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- tr-select-taxclass.html 16 Apr 2008 20:34:41 -0000 1.4
+++ tr-select-taxclass.html 29 Aug 2008 00:23:55 -0000 1.5
@@ -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 {
More information about the freeside-commits
mailing list