1 <INPUT NAME = "<% $name %>"
6 <A href="javascript:void(0)" onclick="<% $onclick %>">
7 <% $value ? "Edit $class tax overrides" : "Override $class taxes" %>
12 my $name = $opt{element_name} || $opt{field} || 'tax_override';
13 my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
15 my %usage_class = map { ($_->classnum => $_->classname) }
16 qsearch('usage_class', {});
17 $usage_class{setup} = 'Setup';
18 $usage_class{recur} = 'Recurring';
21 $name =~ /^tax_override_(\w+)$/ && ( $usage = $1 );
23 my $class = lc($usage_class{$usage} || "Usage class $usage")
26 my $onclick = $opt{onclick} || "overlib( OLiframeContent('part_pkg_taxoverride.html?element_name=$name;selected='+document.getElementById('$name').value, 1100, 600, 'tax_product_popup'), CAPTION, 'Edit $class product tax overrides', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;";