1 package FS::part_event::Action::suspend;
4 use base qw( FS::part_event::Action );
12 'reasonnum' => { 'label' => 'Reason',
13 'type' => 'select-reason',
14 'reason_class' => 'S',
24 my( $self, $cust_object ) = @_;
26 my $cust_main = $self->cust_main($cust_object);
28 my @err = $cust_main->suspend( 'reason' => $self->option('reasonnum') );
30 die join(' / ', @err) if scalar(@err);