blob: 431e5426424f8109d47e434a8193ce535304f287 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<% include( 'elements/process.html',
'table' => 'tax_rate',
'value_callback' => $value_callback,
'popup_reload' => 'Tax changed', #a popup "parent reload" for now
#someday change the individual element and go away instead
)
%>
<%once>
my $value_callback = sub { my ($field, $value) = @_;
($field =~ /^(tax|excessrate|usetax|useexcessrate)$/)
? $value/100
: $value
};
</%once>
<%init>
my $conf = new FS::Conf;
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
</%init>
|