checkpoint of new tax rating system
[freeside.git] / httemplate / edit / part_pkg_taxproduct.html
1 <% include('/elements/header-popup.html', 'Select tax product') %>
2 <SCRIPT>
3   function saveit() {
4     var num = parent.document.getElementById('taxproductnum');
5     var disp = parent.document.getElementById('taxproduct_description');
6     var sel = document.getElementById('taxproduct_popup_select');
7     num.value = sel.options[sel.selectedIndex].value;
8     disp.value = sel.options[sel.selectedIndex].text;
9     parent.cClick();
10   }
11 </SCRIPT>
12 <FORM="dummy" METHOD="POST" onsubmit="saveit();return false;" >
13
14 <% ntable("#cccccc", 2) %>
15 <TR>
16   <TD align="left">Tax product</TD>
17   <TD>
18     <% include( '/elements/select-table.html',
19                 'empty_label' => '(select product)',
20                 'table'       => 'part_pkg_taxproduct',
21                 'name_col'    => 'description',
22                 'curr_value'  => $curr_value,
23                 'element_etc' => "id='taxproduct_popup_select'",
24               )
25     %>
26   </TD>
27 </TR>
28 </TABLE>
29 <BR><BR>
30 <CENTER><INPUT type="submit" value="Select"></CENTER>
31 </FORM>
32 <% include('/elements/footer.html') %>
33
34 <%init>
35
36 my $conf = new FS::Conf;
37
38 my ( $query ) = $cgi->keywords;
39 $query =~ /^(\d+)$/;
40 my $curr_value = $1;
41
42 </%init>