enable CardFortress in test database, #71513
[freeside.git] / httemplate / elements / tr-select-taxoverride.html
index 4954a55..ee3ee41 100644 (file)
@@ -1,4 +1,4 @@
-% if ( $conf->exists('enable_taxproducts') ) { 
+% if ( FS::TaxEngine->new->info->{override} ) {
   <%include('tr-td-label.html', @_) %>
     <TD <% $cell_style %>><% include('select-taxoverride.html', @_) %></TD>
   </TR>
@@ -9,10 +9,8 @@
 
 <%init>
 
-my $conf = new FS::conf;
-
 my %opt = @_;
 my $cell_style = $opt{'cell_style'}? 'STYLE="'. $opt{cell_style}. '"' : '';
-my $name = $opt{name} || 'tax_override';
+my $name = $opt{element_name} || $opt{field} || 'tax_override';
 
 </%init>