[freeside-commits] freeside/httemplate/search rt_transaction.html, 1.7, 1.8
Ivan,,,
ivan at wavetail.420.am
Wed Sep 29 12:54:57 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv17050
Modified Files:
rt_transaction.html
Log Message:
fix time worked search by customer
Index: rt_transaction.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/rt_transaction.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- rt_transaction.html 18 Aug 2010 19:20:16 -0000 1.7
+++ rt_transaction.html 29 Sep 2010 19:54:55 -0000 1.8
@@ -90,7 +90,7 @@
}
if ( $cgi->param('svcnum') =~ /^\s*(\d+)\s*$/ ) {
- $where .= " AND acct_rt_transaction.svcnum = $1";
+ $where .= " AND EXISTS( SELECT 1 FROM acct_rt_transaction WHERE acct_rt_transaction.transaction_id = Transactions.id AND svcnum = $1 )";
}
my $query = {
@@ -100,7 +100,7 @@
'Tickets.Subject',
'Users.name AS otaker',
"$transactiontime AS transaction_time",
- '( SELECT SUM(support) from acct_rt_transaction where Transaction_id = Transactions.id ) AS support',
+ '( SELECT SUM(support) from acct_rt_transaction where transaction_id = Transactions.id ) AS support',
),
'table' => 'transactions', #Pg-ism
#'table' => 'Transactions',
More information about the freeside-commits
mailing list