projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
cust_contact.pm
diff --git
a/FS/FS/cust_contact.pm
b/FS/FS/cust_contact.pm
index
6f899d8
..
118a9e0
100644
(file)
--- a/
FS/FS/cust_contact.pm
+++ b/
FS/FS/cust_contact.pm
@@
-55,6
+55,10
@@
comment
empty or Y
empty or Y
+=item invoice_dest
+
+'Y' if the customer should get invoices sent to this address, null if not
+
=back
=head1 METHODS
=back
=head1 METHODS
@@
-102,7
+106,7
@@
and replace methods.
sub check {
my $self = shift;
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');
}
$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_numbern('classnum')
|| $self->ut_textn('comment')
|| $self->ut_enum('selfservice_access', [ '', 'Y' ])
+ || $self->ut_flag('invoice_dest')
;
return $error if $error;
;
return $error if $error;