X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-taxproduct.html;h=547f06626c8d716fd507ffb854dc2af12e0d3695;hp=9512224751055d55a777a567e5abe672abba6587;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=669bd6b315633c99ac61441198c2c4e45401c36b diff --git a/httemplate/elements/tr-select-taxproduct.html b/httemplate/elements/tr-select-taxproduct.html index 951222475..547f06626 100644 --- a/httemplate/elements/tr-select-taxproduct.html +++ b/httemplate/elements/tr-select-taxproduct.html @@ -1,4 +1,4 @@ -% if ( $conf->exists('enable_taxproducts') ) { +% if ( $conf->config('tax_data_vendor') ) { # still not quite right <%include('tr-td-label.html', @_) %> ><% include('select-taxproduct.html', @_) %> @@ -9,10 +9,10 @@ <%init> -my $conf = new FS::conf; +my $conf = new FS::Conf; my %opt = @_; my $cell_style = $opt{cell_style} ? 'STYLE="'. $opt{cell_style}. '"' : ''; -my $name = $opt{name} || 'taxproductnum'; +my $name = $opt{element_name} || $opt{field} || 'taxproductnum';