summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2003-09-19 04:13:31 +0000
committerivan <ivan>2003-09-19 04:13:31 +0000
commit478c4e250506beecaac5e52b1bff7c861a0febe2 (patch)
tree49baebc003ac1994c3a985a9e0c216c97772c7d5 /FS
parent7e94aba579b3801d62e93a4e33e7e8d6bd77beb2 (diff)
deprecate signup_server-quiet config option
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Conf.pm4
-rw-r--r--FS/FS/cust_main.pm2
-rw-r--r--FS/FS/cust_pkg.pm12
3 files changed, 12 insertions, 6 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 580aebf55..88def81fe 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -902,8 +902,8 @@ httemplate/docs/config.html
{
'key' => 'signup_server-quiet',
- 'section' => '',
- 'description' => 'Disable decline and cancel emails generated by transactions initiated by the signup server. Not recommended, unless the customer will get instant feedback from a customer service UI, and receiving an email would be confusing/overkill. Does not disable welcome emails.',
+ 'section' => 'deprecated',
+ 'description' => ''<b>DEPRECATED</b>, the signup server is now part of the self-service server and no longer sends superfluous decline and cancel emails. Used to disable decline and cancel emails generated by transactions initiated by the signup server. Does not disable welcome emails.',
'type' => 'checkbox',
},
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 13957d7a9..4c2a1defc 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -1246,6 +1246,8 @@ report_badcard - This option is deprecated.
force_print - This option is deprecated; see the invoice events web interface.
+quiet - set true to surpress email card/ACH decline notices.
+
=cut
sub collect {
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 8529e08ca..6b6d55572 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -1,7 +1,7 @@
package FS::cust_pkg;
use strict;
-use vars qw(@ISA $quiet $disable_agentcheck);
+use vars qw(@ISA $disable_agentcheck);
use FS::UID qw( getotaker dbh );
use FS::Record qw( qsearch qsearchs );
use FS::cust_svc;
@@ -253,18 +253,22 @@ sub check {
''; #no error
}
-=item cancel
+=item cancel [ OPTION => VALUE ... ]
Cancels and removes all services (see L<FS::cust_svc> and L<FS::part_svc>)
in this package, then cancels the package itself (sets the cancel field to
now).
+Available options are: I<quiet>
+
+I<quiet> can be set true to supress email cancellation notices.
+
If there is an error, returns the error, otherwise returns false.
=cut
sub cancel {
- my $self = shift;
+ my( $self, %options ) = @_;
my $error;
local $SIG{HUP} = 'IGNORE';
@@ -305,7 +309,7 @@ sub cancel {
my $conf = new FS::Conf;
- if ( !$quiet && $conf->exists('emailcancel')
+ if ( !$options{'quiet'} && $conf->exists('emailcancel')
&& grep { $_ ne 'POST' } $self->cust_main->invoicing_list) {
my @invoicing_list = $self->cust_main->invoicing_list;