[freeside-commits] freeside/httemplate/search prepay_credit.html,
1.2, 1.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Nov 29 18:27:59 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv12489/httemplate/search
Modified Files:
prepay_credit.html
Log Message:
prepaid download/upload tracking
Index: prepay_credit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/prepay_credit.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- prepay_credit.html 23 Aug 2006 22:25:38 -0000 1.2
+++ prepay_credit.html 30 Nov 2006 02:27:56 -0000 1.3
@@ -9,7 +9,6 @@
%my $count_query = 'SELECT COUNT(*) FROM prepay_credit';
%$count_query .= ' WHERE agentnum = '. $agent->agentnum if $agent;
%
-%
<% include( 'elements/search.html',
'title' => 'Unused Prepaid Cards'.
($agent ? ' for '. $agent->agent : ''),
@@ -23,11 +22,17 @@
},
'count_query' => $count_query,
#'redirect' => $link,
- 'header' => [ '#', qw(Amount Time Agent) ],
+ 'header' => [ '#', qw(Amount Time Upload Download Agent) ],
'fields' => [
'identifier',
sub { sprintf('$%.2f', shift->amount ) },
sub { my $c = shift; $c ? duration_exact($c->seconds) : '' },
+ sub { my $c = shift;
+ $c ? FS::UI::Web::bytecount_unexact($c->upbytes) : ''
+ },
+ sub { my $c = shift;
+ $c ? FS::UI::Web::bytecount_unexact($c->downbytes) : ''
+ },
sub { my $agent = shift->agent;
$agent ? $agent->agent : '';
},
@@ -36,6 +41,8 @@
'',
'',
'',
+ '',
+ '',
sub { my $agent = shift->agent;
$agent ? [ "${p}view/agent.cgi?", 'agentnum' ] : '';
},
More information about the freeside-commits
mailing list