fixup taxproduct selection
[freeside.git] / httemplate / elements / select-taxproduct.html
1 <% ntable("#cccccc", 2) %>
2   <TR>
3     <TD align="right">Tax product</TD>
4     <TD>
5       <INPUT name="taxproductnum" id="taxproductnum" type="hidden" value="<% $opt{'taxproductnum'}%>">
6       <INPUT name="taxproductnum_description" id="taxproductnum_description" type="text" value="<% $opt{taxproduct_description} %>" size="12" onclick="overlib( OLiframeContent('<% $p %>/browse/part_pkg_taxproduct.cgi?_type=select&id=taxproductnum&taxproductnum='+document.getElementById('taxproductnum').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;">
7     </TD>
8   </TR>
9   <TR>
10     <TD colspan="2" align="right">
11       <INPUT name="tax_override" id="tax_override" type="hidden" value="<% $opt{tax_override} %>">
12       <A href="javascript:void(0)" onclick="overlib( OLiframeContent('part_pkg_taxoverride.html?selected='+document.getElementById('tax_override').value, 1100, 600, 'tax_product_popup'), CAPTION, 'Edit product tax overrides', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;">
13         <% $opt{tax_override} ? 'Edit tax overrides' : 'Override taxes' %>
14       </A>
15     </TD>
16   </TR>
17 </TABLE>
18
19 <%init>
20
21 my %opt = @_;
22
23 $opt{'taxproduct_description'} ||= $opt{'object'}->taxproduct_description
24   if $opt{'object'};
25
26 </%init>