From 1748e50c012a65ecb729f15e09169f5d8122a3b1 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 19 Apr 2007 23:30:41 +0000 Subject: break _bytecount subroutines out of FS::UI::Web --- httemplate/edit/process/prepay_credit.cgi | 6 +++--- httemplate/edit/process/svc_acct.cgi | 2 +- httemplate/search/prepay_credit.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'httemplate') 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}) : '' %>
% } 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; -- cgit v1.2.1