quiet option to cancel method
authorivan <ivan>
Fri, 19 Sep 2003 12:41:29 +0000 (12:41 +0000)
committerivan <ivan>
Fri, 19 Sep 2003 12:41:29 +0000 (12:41 +0000)
FS/FS/cust_main.pm

index d1ea863..ee417bf 100644 (file)
@@ -877,16 +877,21 @@ sub suspend {
   grep { $_->suspend } $self->unsuspended_pkgs;
 }
 
-=item cancel
+=item cancel [ OPTION => VALUE ... ]
 
 Cancels all uncancelled packages (see L<FS::cust_pkg>) for this customer.
+
+Available options are: I<quiet>
+
+I<quiet> can be set true to supress email cancellation notices.
+
 Always returns a list: an empty list on success or a list of errors.
 
 =cut
 
 sub cancel {
   my $self = shift;
-  grep { $_->cancel } $self->ncancelled_pkgs;
+  grep { $_->cancel(@_) } $self->ncancelled_pkgs;
 }
 
 =item agent