X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_contact.pm;h=adad46e9e18eb9507061fbe4aea1ae394c91bfff;hb=d856e90f730f72d173c2eedde4c81bba20c583b8;hp=f0f8bfb694a727757b5c5c0edb82735e270e91b4;hpb=571291dda91dd92db80660aa3d67333b0c88fc34;p=freeside.git diff --git a/FS/FS/cust_contact.pm b/FS/FS/cust_contact.pm index f0f8bfb69..adad46e9e 100644 --- a/FS/FS/cust_contact.pm +++ b/FS/FS/cust_contact.pm @@ -59,6 +59,11 @@ empty or Y 'Y' if the customer should get invoices sent to this address, null if not +=item message_dest + +'Y' if contact should get non-invoice email messages sent to this address, +NULL if not + =back =head1 METHODS @@ -106,7 +111,7 @@ and replace methods. sub check { my $self = shift; - if ( $self->selfservice_access eq 'R' ) { + if ( $self->selfservice_access eq 'R' || $self->selfservice_access eq 'E' || $self->selfservice_access eq 'P') { $self->selfservice_access('Y'); $self->_resend('Y'); } @@ -119,6 +124,7 @@ sub check { || $self->ut_textn('comment') || $self->ut_enum('selfservice_access', [ '', 'Y' ]) || $self->ut_flag('invoice_dest') + || $self->ut_flag('message_dest') ; return $error if $error; @@ -148,4 +154,3 @@ L, L, L =cut 1; -