summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorjeff <jeff>2007-04-19 23:30:41 +0000
committerjeff <jeff>2007-04-19 23:30:41 +0000
commit1748e50c012a65ecb729f15e09169f5d8122a3b1 (patch)
treeaedfbaafc7f921298a3065909cf7597ea245d18a /httemplate
parentdb4034e2019cb6c7f455640b89e8d5fedeb28932 (diff)
break _bytecount subroutines out of FS::UI::Web
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/process/prepay_credit.cgi6
-rwxr-xr-xhttemplate/edit/process/svc_acct.cgi2
-rw-r--r--httemplate/search/prepay_credit.html6
3 files changed, 7 insertions, 7 deletions
diff --git a/httemplate/edit/process/prepay_credit.cgi b/httemplate/edit/process/prepay_credit.cgi
index 6bf46bf7c..518f79d86 100644
--- a/httemplate/edit/process/prepay_credit.cgi
+++ b/httemplate/edit/process/prepay_credit.cgi
@@ -49,9 +49,9 @@
<% $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}) : '' %>
- <% $hashref->{totalbytes} ? FS::UI::Web::bytecount_unexact($hashref->{totalbytes}) : '' %>
+ <% $hashref->{upbytes} ? FS::UI::bytecount::bytecount_unexact($hashref->{upbytes}) : '' %>
+ <% $hashref->{downbytes} ? FS::UI::bytecount::bytecount_unexact($hashref->{downbytes}) : '' %>
+ <% $hashref->{totalbytes} ? FS::UI::bytecount::bytecount_unexact($hashref->{totalbytes}) : '' %>
<br>
% }
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi
index 65ac5c176..a4a6c0015 100755
--- a/httemplate/edit/process/svc_acct.cgi
+++ b/httemplate/edit/process/svc_acct.cgi
@@ -25,7 +25,7 @@
%
%#unmunge bytecounts
%foreach (map { $_,$_."_threshold" } qw( upbytes downbytes totalbytes )) {
-% $cgi->param($_, FS::UI::Web::parse_bytecount($cgi->param($_)) );
+% $cgi->param($_, FS::UI::bytecount::parse_bytecount($cgi->param($_)) );
%}
%
%my %hash = $svcnum ? $old->hash : ();
diff --git a/httemplate/search/prepay_credit.html b/httemplate/search/prepay_credit.html
index ab6490d33..43fc6a96c 100644
--- a/httemplate/search/prepay_credit.html
+++ b/httemplate/search/prepay_credit.html
@@ -20,17 +20,17 @@
},
sub { my $c = shift;
$c->upbytes
- ? FS::UI::Web::bytecount_unexact($c->upbytes)
+ ? FS::UI::bytecount::bytecount_unexact($c->upbytes)
: ''
},
sub { my $c = shift;
$c->downbytes
- ? FS::UI::Web::bytecount_unexact($c->downbytes)
+ ? FS::UI::bytecount::bytecount_unexact($c->downbytes)
: ''
},
sub { my $c = shift;
$c->totalbytes
- ? FS::UI::Web::bytecount_unexact($c->totalbytes)
+ ? FS::UI::bytecount::bytecount_unexact($c->totalbytes)
: ''
},
sub { my $agent = shift->agent;