1 package FS::part_event::Action::suspend;
4 use base qw( FS::part_event::Action );
6 sub description { 'Suspend'; }
10 'reasonnum' => { 'label' => 'Reason',
11 'type' => 'select-reason',
12 'reason_class' => 'S',
17 sub default_weight { 10; }
20 my( $self, $cust_object ) = @_;
22 my $cust_main = $self->cust_main($cust_object);
24 my @err = $cust_main->suspend( 'reason' => $self->option('reasonnum') );
26 die join(' / ', @err) if scalar(@err);