[freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.52, 1.53

Ivan,,, ivan at wavetail.420.am
Thu Feb 21 17:32:12 PST 2008


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv27283

Modified Files:
	svc_acct.cgi 
Log Message:
on accounts overview: show time applied after multipliers, not actual time worked

Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/svc_acct.cgi,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- svc_acct.cgi	22 Feb 2008 00:54:15 -0000	1.52
+++ svc_acct.cgi	22 Feb 2008 01:32:10 -0000	1.53
@@ -23,20 +23,6 @@
 sub timelast {
   my( $svc_acct, $last, $permonth ) = @_;
 
-  #some false laziness w/search/rt_transaction.html
-
-  my $transactiontime = "
-    CASE transactions.type when 'Set'
-      THEN (  to_number(newvalue, '999999')
-            - to_number(oldvalue, '999999')
-           ) * 60
-      ELSE timetaken*60
-    END
-  ";
-
-  #Transactions
-#  my $sql = "
-#    SELECT SUM($transactiontime) FROM acct_rt_transaction
   my $sql = "
     SELECT SUM(support) FROM acct_rt_transaction
       LEFT JOIN Transactions



More information about the freeside-commits mailing list