svc_acct events for usage limits, #13202
[freeside.git] / FS / FS / part_event / Action / pkg_cancel.pm
index 2bfd35c..1eeb4a8 100644 (file)
@@ -21,7 +21,8 @@ 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->cancel( 'reason' => $self->option('reasonnum') );
   die $error if $error;