X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fprepay_credit.html;h=fecb12f2a83bf6492c425f22cc7f74551a1d39f5;hp=dff8a3d9a8d3050105c038c91a685c33b20c0d9a;hb=dbb388836b7951a3db49deda05a1ff9ba5125c17;hpb=12c852be6d4cabcc89fd9db901a6b315efbc1e97 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' ] : ''; },