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/edit/process/prepay_credit.cgi | |
parent | 12c852be6d4cabcc89fd9db901a6b315efbc1e97 (diff) |
prepaid download/upload tracking
Diffstat (limited to 'httemplate/edit/process/prepay_credit.cgi')
-rw-r--r-- | httemplate/edit/process/prepay_credit.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/edit/process/prepay_credit.cgi b/httemplate/edit/process/prepay_credit.cgi index fb15fd8e4..ba4296900 100644 --- a/httemplate/edit/process/prepay_credit.cgi +++ b/httemplate/edit/process/prepay_credit.cgi @@ -15,8 +15,10 @@ % $error = 'Illegal number of prepaid cards: '. $cgi->param('num'); %} % -%$hashref->{amount} = $cgi->param('amount'); -%$hashref->{seconds} = $cgi->param('seconds') * $cgi->param('multiplier'); +%$hashref->{amount} = $cgi->param('amount'); +%$hashref->{seconds} = $cgi->param('seconds') * $cgi->param('multiplier'); +%$hashref->{upbytes} = $cgi->param('upbytes') * $cgi->param('upmultiplier'); +%$hashref->{downbytes} = $cgi->param('downbytes') * $cgi->param('downmultiplier'); % %$error ||= FS::prepay_credit::generate( $num, % scalar($cgi->param('type')), @@ -46,6 +48,8 @@ <% $hashref->{amount} ? sprintf('$%.2f', $hashref->{amount} ) : '' %> <% $hashref->{amount} && $hashref->{seconds} ? 'and' : '' %> <% $hashref->{seconds} ? duration_exact($hashref->{seconds}) : '' %> + <% $hashref->{upbytes} ? FS::UI::Web::bytecount_unexact($hashref->{upbytes}) : '' %> + <% $hashref->{downbytes} ? FS::UI::Web::bytecount_unexact($hashref->{downbytes}) : '' %> <br> % } |