diff options
author | ivan <ivan> | 1999-08-04 08:00:43 +0000 |
---|---|---|
committer | ivan <ivan> | 1999-08-04 08:00:43 +0000 |
commit | be415b1dd6b788a2fe2071093b404ff10cfd4654 (patch) | |
tree | c845d966bcb1c56f3364e018b3b9b8ec1124f771 /site_perl/UI/agent.pm | |
parent | c4534c2eb63a4eadfb588cefef0007e85c057036 (diff) |
move to perl installation directory
Diffstat (limited to 'site_perl/UI/agent.pm')
-rw-r--r-- | site_perl/UI/agent.pm | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/site_perl/UI/agent.pm b/site_perl/UI/agent.pm deleted file mode 100644 index ce9744a55..000000000 --- a/site_perl/UI/agent.pm +++ /dev/null @@ -1,62 +0,0 @@ -package FS::UI::agent; - -use strict; -use vars qw ( @ISA ); -use FS::UI::Base; -use FS::Record qw( qsearchs ); -use FS::agent; -use FS::agent_type; - -@ISA = qw ( FS::UI::Base ); - -sub db_table { 'agent' }; - -sub db_name { 'Agent' }; - -sub db_description { <<END; -Agents are resellers of your service. Agents may be limited to a subset of your -full offerings (via their type). -END -} - -sub list_fields { - 'agentnum', - 'typenum', -# 'freq', -# 'prog', -; } - -sub list_header { - 'Agent', - 'Type', -# 'Freq (n/a)', -# 'Prog (n/a)', -; } - -sub db_callback { - 'agentnum' => - sub { - my ( $agentnum, $record ) = @_; - my $agent = $record->agent; - new FS::UI::_Link ( - 'table' => 'agent', - 'method' => 'edit', - 'arg' => [ $agentnum ], - 'text' => "$agentnum: $agent", - ); - }, - 'typenum' => - sub { - my $typenum = shift; - my $agent_type = qsearchs( 'agent_type', { 'typenum' => $typenum } ); - my $atype = $agent_type->atype; - new FS::UI::_Link ( - 'table' => 'agent_type', - 'method' => 'edit', - 'arg' => [ $typenum ], - 'text' => "$typenum: $atype" - ); - }, -} - -1; |