[freeside-commits] branch FREESIDE_3_BRANCH updated. 9dfce5df3c9342880a1f03eeddd5e714a87c35fd

Jeremy Davis jeremyd at 420.am
Thu Oct 30 10:17:29 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  9dfce5df3c9342880a1f03eeddd5e714a87c35fd (commit)
      from  25f8f30663974eddec8718386f1e5edc955d9af4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9dfce5df3c9342880a1f03eeddd5e714a87c35fd
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Thu Oct 30 10:24:58 2014 -0400

    Ticket #29773 Add methods to svc_forward to make exporting more effective

diff --git a/FS/FS/svc_forward.pm b/FS/FS/svc_forward.pm
index 9e27a32..5612cfc 100644
--- a/FS/FS/svc_forward.pm
+++ b/FS/FS/svc_forward.pm
@@ -353,6 +353,54 @@ sub dstsvc_acct {
   qsearchs('svc_acct', { 'svcnum' => $self->dstsvc } );
 }
 
+=item src_email
+
+Returns the email address to be forwarded regardless of weither it is local
+or remote
+
+=cut
+
+sub src_email {
+my $self = shift;
+
+if ($self->srcsvc eq '0'){
+	return $self->src;
+} else {
+	my $svc_acct = $self->srcsvc_acct;
+	return $svc_acct->email;
+}}
+
+=item dst_email
+
+Returns the email address which gets forwarded to regardless of weither it is local
+or remote
+
+=cut
+
+sub dst_email {
+my $self = shift;
+
+if ($self->dstsvc eq '0'){
+        return $self->dst;
+} else {
+	my $svc_acct = $self->dstsvc_acct;
+        return $svc_acct->email;
+}}
+
+=item srcsvc_acct_domain
+
+Returns the domain of the srcsvc_acct
+
+=cut
+
+sub srcsvc_acct_domain {
+my $self = shift;
+
+        my $svc_acct = $self->srcsvc_acct;
+        return $svc_acct->domain;
+}
+
+
 =back
 
 =head1 BUGS

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/svc_forward.pm |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)




More information about the freeside-commits mailing list