summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorjeff <jeff>2006-11-30 02:27:57 +0000
committerjeff <jeff>2006-11-30 02:27:57 +0000
commitdbb388836b7951a3db49deda05a1ff9ba5125c17 (patch)
treee0c27eb8e84c416a9a833c21977d587983c7ef9e /httemplate/search
parent12c852be6d4cabcc89fd9db901a6b315efbc1e97 (diff)
prepaid download/upload tracking
Diffstat (limited to 'httemplate/search')
-rw-r--r--httemplate/search/prepay_credit.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/search/prepay_credit.html b/httemplate/search/prepay_credit.html
index dff8a3d9a..fecb12f2a 100644
--- a/httemplate/search/prepay_credit.html
+++ b/httemplate/search/prepay_credit.html
@@ -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' ] : '';
},