2 'menubar'=> [ "View all $classname Reasons" =>
3 $p.'browse/reason.html?class='.$class,
4 "View $classname Reason Types" =>
5 $p.'browse/reason_type.html?class='.$class,
7 'name' => ucfirst($classname) . ' Reason',
11 'reasonnum' => $classname . ' Reason',
12 'reason_type' => $classname . ' Reason type',
13 'reason' => $classname . ' Reason',
14 'disabled' => 'Disabled',
16 'unsuspend_pkgpart' => 'Unsuspension fee',
17 'unsuspend_hold' => 'Delay until next bill',
24 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
26 $cgi->param('class') =~ /^(\w)$/ or die "illegal class";
29 my $classname = ucfirst($FS::reason_type::class_name{$class});
31 my (@types) = qsearch( 'reason_type', { 'class' => $class } );
33 unless (scalar(@types)) {
34 print $cgi->redirect( "reason_type.html?class=$class" );
38 { 'field' => 'reason_type',
39 'type' => 'select-table',
40 'table' => 'reason_type',
42 'value_col' => 'typenum',
43 'hashref' => { 'class' => $class },
45 # #then fix tr-select.html
47 # 'value' => { 'vcolumn' => 'typenum',
48 # 'ccolumn' => 'type',
49 # 'values' => \@types,
51 # # that wasn't so hard...did this do something else that I'm missing?
58 { 'field' => 'disabled',
65 { 'field' => 'unsuspend_pkgpart',
66 'type' => 'select-part_pkg',
67 'hashref' => { 'disabled' => '',
68 'freq' => 0 }, # one-time charges only
70 { 'field' => 'unsuspend_hold',