1 package FS::part_event::Action::cancel;
4 use base qw( FS::part_event::Action );
6 sub description { 'Cancel'; }
10 'reasonnum' => { 'label' => 'Reason',
11 'type' => 'select-reason',
12 'reason_class' => 'C',
17 sub default_weight { 20; }
20 my( $self, $cust_object ) = @_;
22 my $cust_main = $self->cust_main($cust_object);
24 my $error = $cust_main->cancel( 'reason' => $self->option('reasonnum') );