diff options
author | ivan <ivan> | 2003-09-19 12:41:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-09-19 12:41:29 +0000 |
commit | 6c8e8078b3867abbcb049cd17b8a0abb90a38e29 (patch) | |
tree | 1f4e20f8633829bdc5e9df9f5a1d5c7e390e82bd | |
parent | 8145570cc889facdd155c87a2e2171db38ee766d (diff) |
quiet option to cancel method
-rw-r--r-- | FS/FS/cust_main.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index d1ea86319..ee417bf62 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -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 |