[freeside-commits] branch FREESIDE_3_BRANCH updated. 6185feb6b1a1ae66dc2c4637d55aa6413dc1e103

Ivan ivan at 420.am
Mon May 19 23:13:25 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  6185feb6b1a1ae66dc2c4637d55aa6413dc1e103 (commit)
      from  442bc38bc3cf8d95f0b39e42446a193ad0caaf31 (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 6185feb6b1a1ae66dc2c4637d55aa6413dc1e103
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon May 19 23:13:23 2014 -0700

    agent-virtualize VoIP rates, RT#29183

diff --git a/FS/FS/rate.pm b/FS/FS/rate.pm
index 1b2236f..b2d121c 100644
--- a/FS/FS/rate.pm
+++ b/FS/FS/rate.pm
@@ -395,6 +395,16 @@ sub rate_detail {
   qsearch( 'rate_detail', { 'ratenum' => $self->ratenum } );
 }
 
+=item agent
+
+=cut
+
+sub agent {
+  my $self = shift;
+  eval "use FS::agent";
+  die $@ if $@;
+  qsearchs( 'agent', { 'agentnum' => $self->agentnum } );
+}
 
 =back
 

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

Summary of changes:
 FS/FS/rate.pm |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list