X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fprepay_credit.html;h=c79acb005cbbd89f1d0a9bbab05299cd23767b61;hb=81152bdb2d34ede928dfa20d19125356f02a884d;hp=fecb12f2a83bf6492c425f22cc7f74551a1d39f5;hpb=dbb388836b7951a3db49deda05a1ff9ba5125c17;p=freeside.git diff --git a/httemplate/search/prepay_credit.html b/httemplate/search/prepay_credit.html index fecb12f2a..c79acb005 100644 --- a/httemplate/search/prepay_credit.html +++ b/httemplate/search/prepay_credit.html @@ -22,16 +22,27 @@ }, 'count_query' => $count_query, #'redirect' => $link, - 'header' => [ '#', qw(Amount Time Upload Download Agent) ], + 'header' => [ '#', qw(Amount Time Upload Download Total 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) : '' + $c->seconds ? duration_exact($c->seconds) : '' }, sub { my $c = shift; - $c ? FS::UI::Web::bytecount_unexact($c->downbytes) : '' + $c->upbytes + ? FS::UI::Web::bytecount_unexact($c->upbytes) + : '' + }, + sub { my $c = shift; + $c->downbytes + ? FS::UI::Web::bytecount_unexact($c->downbytes) + : '' + }, + sub { my $c = shift; + $c->totalbytes + ? FS::UI::Web::bytecount_unexact($c->totalbytes) + : '' }, sub { my $agent = shift->agent; $agent ? $agent->agent : ''; @@ -43,6 +54,7 @@ '', '', '', + '', sub { my $agent = shift->agent; $agent ? [ "${p}view/agent.cgi?", 'agentnum' ] : ''; },