X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_contact.pm;h=118a9e0008cd750780c02e6c2301ebd822285e73;hb=5f7c4a6025b9e3a49bee72dbc06cac37a45e6f10;hp=6f899d83f8cedcd832f7d4e8776f379c78219105;hpb=aeb90ade381fc3d5477db0334048c2af623fccfe;p=freeside.git diff --git a/FS/FS/cust_contact.pm b/FS/FS/cust_contact.pm index 6f899d83f..118a9e000 100644 --- a/FS/FS/cust_contact.pm +++ b/FS/FS/cust_contact.pm @@ -55,6 +55,10 @@ comment empty or Y +=item invoice_dest + +'Y' if the customer should get invoices sent to this address, null if not + =back =head1 METHODS @@ -102,7 +106,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'); } @@ -114,6 +118,7 @@ sub check { || $self->ut_numbern('classnum') || $self->ut_textn('comment') || $self->ut_enum('selfservice_access', [ '', 'Y' ]) + || $self->ut_flag('invoice_dest') ; return $error if $error;