projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 82137 - added processing fee template substitution.
[freeside.git]
/
FS
/
FS
/
cust_contact.pm
diff --git
a/FS/FS/cust_contact.pm
b/FS/FS/cust_contact.pm
index
6f899d8
..
adad46e
100644
(file)
--- a/
FS/FS/cust_contact.pm
+++ b/
FS/FS/cust_contact.pm
@@
-55,6
+55,15
@@
comment
empty or Y
empty or Y
+=item invoice_dest
+
+'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
=back
=head1 METHODS
@@
-102,7
+111,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
+123,8
@@
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')
+ || $self->ut_flag('message_dest')
;
return $error if $error;
;
return $error if $error;
@@
-143,4
+154,3
@@
L<FS::contact>, L<FS::cust_main>, L<FS::Record>
=cut
1;
=cut
1;
-