sub description { 'Suspend this package'; }
sub eventtable_hashref {
- { 'cust_pkg' => 1 };
+ { 'cust_pkg' => 1,
+ 'svc_acct' => 1, };
}
sub option_fields {
sub default_weight { 20; }
sub do_action {
- my( $self, $cust_pkg, $cust_event ) = @_;
+ my( $self, $object, $cust_event ) = @_;
+ my $cust_pkg = $self->cust_pkg($object);
my $error = $cust_pkg->suspend( 'reason' => $self->option('reasonnum') );
die $error if $error;