projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
442bc38
)
agent-virtualize VoIP rates, RT#29183
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 20 May 2014 06:13:23 +0000
(23:13 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 20 May 2014 06:13:23 +0000
(23:13 -0700)
FS/FS/rate.pm
patch
|
blob
|
history
diff --git
a/FS/FS/rate.pm
b/FS/FS/rate.pm
index
1b2236f
..
b2d121c
100644
(file)
--- 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