1 package FS::part_event::Action::suspend;
4 use base qw( FS::part_event::Action );
6 sub description { 'Suspend all of this customer\'s packages'; }
10 'reasonnum' => { 'label' => 'Reason',
11 'type' => 'select-reason',
12 'reason_class' => 'S',
14 'suspend_bill' => { 'label' => 'Continue recurring billing while suspended',
21 sub default_weight { 10; }
24 my( $self, $cust_object ) = @_;
26 my $cust_main = $self->cust_main($cust_object);
28 my @err = $cust_main->suspend(
29 'reason' => $self->option('reasonnum'),
30 'options' => { 'suspend_bill' => $self->option('suspend_bill') },
33 die join(' / ', @err) if scalar(@err);