'Edit package definitions',
{ rightname=>'Edit global package definitions', global=>1 },
-
+ 'Edit package definition costs',
+
'Bulk edit package definitions',
'Edit billing events',
'Configuration' => 'Alarm global configuration',
'Services: Accounts' => 'Services: Conferencing',
'Services: Accounts' => 'Services: Video',
+ 'Edit global package definitions' => 'Edit package definition costs',
);
# foreach my $old_acl ( keys %onetime ) {
{ type => 'tablebreak-tr-title',
value => 'Cost tracking', #better name?
},
- { field=>'setup_cost', type=>'money', },
- { field=>'recur_cost', type=>'money', },
+
+ ( $curuser->access_right('Edit package definition costs')
+ ? ( { field=>'setup_cost', type=>'money', },
+ { field=>'recur_cost', type=>'money', },
+ )
+ : ( { field=>'setup_cost', type=>'fixed', },
+ { field=>'recur_cost', type=>'fixed', },
+ )
+ ),
( $conf->exists('part_pkg-delay_start')
? ( { type => 'tablebreak-tr-title',