1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
package FS::TicketSystem::RT_Internal;
use strict;
use vars qw( @ISA );
use FS::UID qw(dbh);
use FS::CGI qw(popurl);
use FS::TicketSystem::RT_Libs;
@ISA = qw( FS::TicketSystem::RT_Libs );
sub sql_num_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
)";
}
sub num_customer_tickets {
my( $self, $custnum, $priority ) = ( shift, shift, shift );
$self->SUPER::num_customer_tickets( $custnum, $priority, dbh );
}
sub customer_tickets {
my( $self, $custnum, $limit, $priority ) = ( shift, shift, shift, shift );
$self->SUPER::customer_tickets( $custnum, $limit, $priority, dbh );
}
sub href_customer_tickets {
my $self = shift;
# well, 2 is wrong here but will have to do for now
popurl(2).'rt/'. $self->SUPER::href_customer_tickets(@_);
}
sub href_new_ticket {
my $self = shift;
# well, 2 is wrong here but will have to do for now
popurl(2).'rt/'. $self->SUPER::href_new_ticket(@_);
}
sub href_ticket {
my $self = shift;
# well, 2 is wrong here but will have to do for now
popurl(2).'rt/'. $self->SUPER::href_ticket(@_);
}
1;
|