diff options
author | jeff <jeff> | 2006-11-30 02:27:57 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-11-30 02:27:57 +0000 |
commit | dbb388836b7951a3db49deda05a1ff9ba5125c17 (patch) | |
tree | e0c27eb8e84c416a9a833c21977d587983c7ef9e /httemplate/search | |
parent | 12c852be6d4cabcc89fd9db901a6b315efbc1e97 (diff) |
prepaid download/upload tracking
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/prepay_credit.html | 11 |
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' ] : ''; }, |