1 <& elements/process.html,
2 'table' => 'commission_schedule',
3 'viewall_dir' => 'browse',
5 'table' => 'commission_rate',
6 'fields' => [qw( cycle amount percent )],
8 'precheck_callback' => $precheck,
14 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
18 $cgi->param('reasonnum') =~ /^(-?\d+)$/ or die "Illegal reasonnum";
20 my ($reasonnum, $error) = $m->comp('/misc/process/elements/reason');
22 $error ||= 'Reason required'
24 $cgi->param('reasonnum', $reasonnum) unless $error;
26 # remove rate entries with no cycle selected
27 foreach my $k (grep /^commissionratenum\d+$/, $cgi->param) {
28 if (! $cgi->param($k.'_cycle') ) {