Optimize "Customer has a referring customer" condition, RT#74452
[freeside.git] / httemplate / elements / tr-select-taxproduct.html
index 9512224..547f066 100644 (file)
@@ -1,4 +1,4 @@
-% if ( $conf->exists('enable_taxproducts') ) { 
+% if ( $conf->config('tax_data_vendor') ) { # still not quite right
   <%include('tr-td-label.html', @_) %>
     <TD <% $cell_style %>><% include('select-taxproduct.html', @_) %></TD>
   </TR>
@@ -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';
 
 </%init>