1 <& elements/browse.html,
2 'title' => 'Fee definitions',
3 'name_singular' => 'fee definition',
5 'count_query' => $count_query,
13 'fields' => [ 'feepart',
21 disabled_statuspos => 3,
24 agent_null_right=> 'Edit global fee definitions',
32 my $curuser = $FS::CurrentUser::CurrentUser;
33 my $acl_edit = $curuser->access_right('Edit fee definitions');
34 my $acl_edit_global = $curuser->access_right('Edit global fee definitions');
36 unless $acl_edit or $acl_edit_global;
39 'select' => 'part_fee.*,'.
40 '(select classname from pkg_class '.
41 'where pkg_class.classnum = part_fee.classnum) AS classname',
42 'table' => 'part_fee',
44 my $count_query = "SELECT COUNT(*) FROM part_fee";
46 my $sub_amount = sub {
48 my $string = $obj->explanation;
49 $string =~ s/\n/<br>/sg;
55 if ( $obj->taxable ) {
56 return $obj->taxclass || 'taxable';
57 } elsif ( $obj->taxproductnum ) {
59 split(/\s*:\s*/, $obj->part_pkg_taxproduct->description)
66 my $link = [ $p.'edit/part_fee.html?', 'feepart' ];