summaryrefslogtreecommitdiff
path: root/FS/FS/agent.pm
diff options
context:
space:
mode:
authorivan <ivan>2005-10-15 11:29:54 +0000
committerivan <ivan>2005-10-15 11:29:54 +0000
commit4b4b3ca9cb0b7336293b759549b78fc903a7d8c8 (patch)
tree1d918dfa12d8d494c7f29d4a8357523a4a0206db /FS/FS/agent.pm
parenta040f91fa563ceae73bfd84bd39d07a0a7961298 (diff)
agent option to select RT queue
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r--FS/FS/agent.pm15
1 files changed, 14 insertions, 1 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm
index 0a0e4f7..83f0ce5 100644
--- a/FS/FS/agent.pm
+++ b/FS/FS/agent.pm
@@ -2,12 +2,13 @@ package FS::agent;
use strict;
use vars qw( @ISA );
+#use Crypt::YAPassGen;
use FS::Record qw( dbh qsearch qsearchs );
use FS::cust_main;
use FS::cust_pkg;
use FS::agent_type;
use FS::reg_code;
-#use Crypt::YAPassGen;
+use FS::TicketSystem;
@ISA = qw( FS::Record );
@@ -167,6 +168,18 @@ sub pkgpart_hashref {
$self->agent_type->pkgpart_hashref;
}
+=item ticketing_queue
+
+Returns the queue name corresponding with the id from the I<ticketing_queueid>
+field, or the empty string.
+
+=cut
+
+sub ticketing_queue {
+ my $self = shift;
+ FS::TicketSystem->queue($self->ticketing_queueid);
+};
+
=item num_prospect_cust_main
Returns the number of prospects (customers with no packages ever ordered) for