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',
33 my $curuser = $FS::CurrentUser::CurrentUser;
34 my $acl_edit = $curuser->access_right('Edit fee definitions');
35 my $acl_edit_global = $curuser->access_right('Edit global fee definitions');
37 unless $acl_edit or $acl_edit_global;
40 'select' => 'part_fee.*,'.
41 '(select classname from pkg_class '.
42 'where pkg_class.classnum = part_fee.classnum) AS classname',
43 'table' => 'part_fee',
45 my $count_query = "SELECT COUNT(*) FROM part_fee";
47 my $sub_amount = sub {
49 my $string = $obj->explanation;
50 $string =~ s/\n/<br>/sg;
56 if ( $obj->taxable ) {
57 return $obj->taxclass || 'taxable';
58 } elsif ( $obj->taxproductnum ) {
60 split(/\s*:\s*/, $obj->part_pkg_taxproduct->description)
67 my $link = [ $p.'edit/part_fee.html?', 'feepart' ];
69 my @menubar = ( 'Add a new fee definition',
70 $p.'edit/part_fee.html' );