add elements for selecting taxproduct
[freeside.git] / httemplate / elements / tr-select-taxproduct.html
diff --git a/httemplate/elements/tr-select-taxproduct.html b/httemplate/elements/tr-select-taxproduct.html
new file mode 100644 (file)
index 0000000..f9f192a
--- /dev/null
@@ -0,0 +1,22 @@
+% if ( $conf->exists('enable_taxproducts') ) { 
+
+    <TR>
+      <TD COLSPAN="2">
+        <% include('select-taxproduct.html', @_) %>
+      </TD>
+    </TR>
+
+% } else { 
+
+    <INPUT TYPE="hidden" NAME="taxproductnum" VALUE="<% $opt{taxproductnum} %>">
+    <INPUT TYPE="hidden" NAME="tax_override"  VALUE="<% $opt{tax_override}  %>">
+
+% } 
+
+<%init>
+
+my $conf = new FS::Conf; 
+
+my %opt = @_;
+
+</%init>