summaryrefslogtreecommitdiff
path: root/FS/FS/TicketSystem
diff options
context:
space:
mode:
authorivan <ivan>2004-12-02 09:59:48 +0000
committerivan <ivan>2004-12-02 09:59:48 +0000
commit0d1d2630e726ab4ce32bab9c3e4a889eee43fcb4 (patch)
tree34d6d7d9dc3ed2ab2bd5fafb585330fc20355b53 /FS/FS/TicketSystem
parentb81d94452ba28c79036ab417bd32df54a583f324 (diff)
second big RT integration checkin, customer linking/delinking interface
Diffstat (limited to 'FS/FS/TicketSystem')
-rw-r--r--FS/FS/TicketSystem/RT_Internal.pm9
-rw-r--r--FS/FS/TicketSystem/RT_Libs.pm1
2 files changed, 10 insertions, 0 deletions
diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm
index a4ecd6a66..ec0c3f7be 100644
--- a/FS/FS/TicketSystem/RT_Internal.pm
+++ b/FS/FS/TicketSystem/RT_Internal.pm
@@ -1,8 +1,17 @@
package FS::TicketSystem::RT_Internal;
use strict;
+use vars qw( @ISA );
@ISA = qw( FS::TicketSystem::RT_Libs );
+sub sql_customer_tickets {
+ "( select count(*) from tickets
+ join links on ( tickets.id = links.localbase )
+ where ( status = 'new' or status = 'open' or status = 'stalled' )
+ and target = 'freeside://freeside/cust_main/' || custnum
+ )";
+}
+
1;
diff --git a/FS/FS/TicketSystem/RT_Libs.pm b/FS/FS/TicketSystem/RT_Libs.pm
index b71763237..aba783fdc 100644
--- a/FS/FS/TicketSystem/RT_Libs.pm
+++ b/FS/FS/TicketSystem/RT_Libs.pm
@@ -1,6 +1,7 @@
package FS::TicketSystem::RT_Libs.pm
use strict;
+use vars qw( @ISA );
@ISA = qw( FS::TicketSystem::RT_External );