diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-12-28 16:11:46 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-12-28 16:11:46 -0800 |
commit | 32072dbf59a054529f5304574c0f56f9567d14d0 (patch) | |
tree | eaca19adc8da8daf4b0eaaed1a16c3a8e5a53cb0 /FS/FS/agent.pm | |
parent | 66c235e33563ccd785ff9e0828398f778a75fb9f (diff) |
autoload methods returning foreign records, RT#13971
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r-- | FS/FS/agent.pm | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index d70ff18b4..b476847c5 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -7,9 +7,8 @@ use Business::CreditCard 0.28; use FS::Record qw( dbh qsearch qsearchs ); use FS::cust_main; use FS::cust_pkg; -use FS::agent_type; -use FS::agent_currency; use FS::reg_code; +use FS::agent_payment_gateway; use FS::TicketSystem; use FS::Conf; @@ -157,13 +156,6 @@ sub check { Returns the FS::agent_type object (see L<FS::agent_type>) for this agent. -=cut - -sub agent_type { - my $self = shift; - qsearchs( 'agent_type', { 'typenum' => $self->typenum } ); -} - =item agent_cust_main Returns the FS::cust_main object (see L<FS::cust_main>), if any, for this @@ -181,13 +173,6 @@ sub agent_cust_main { Returns the FS::agent_currency objects (see L<FS::agent_currency>), if any, for this agent. -=cut - -sub agent_currency { - my $self = shift; - qsearch('agent_currency', { 'agentnum' => $self->agentnum } ); -} - =item agent_currency_hashref Returns a hash references of supported additional currencies for this agent. |