[freeside-commits] freeside/httemplate/view svc_acct.cgi, 1.49, 1.50
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Apr 11 20:16:45 PDT 2007
- Previous message: [freeside-commits] freeside/httemplate/edit/process part_pkg.cgi, 1.19, 1.20 svc_acct.cgi, 1.7, 1.8
- Next message: [freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.68, 1.69 part_svc.cgi, 1.57, 1.58 svc_acct.cgi, 1.46, 1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv7777/httemplate/view
Modified Files:
svc_acct.cgi
Log Message:
input and output on data volume fields specified with k,m,g,or t
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_acct.cgi,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- svc_acct.cgi 5 Feb 2007 12:51:05 -0000 1.49
+++ svc_acct.cgi 12 Apr 2007 03:16:43 -0000 1.50
@@ -245,17 +245,19 @@
</TD>
</TR>
% }
-% my %ulabel = ( seconds => 'Seconds',
+% my %ulabel = ( seconds => 'Time',
% upbytes => 'Upload bytes',
% downbytes => 'Download bytes',
% totalbytes => 'Total bytes',
% );
% foreach my $uf ( keys %ulabel ) {
% my $tf = $uf . "_threshold";
-% if ( $svc_acct->$tf ne '' ) {
+% if ( $svc_acct->$uf ne '' ) {
+% my $v = $uf eq 'seconds' ? duration_exact($svc_acct->$uf)
+% : FS::UI::Web::display_bytecount($svc_acct->$uf);
<TR>
<TD ALIGN="right"><% $ulabel{$uf} %> remaining</TD>
- <TD BGCOLOR="#ffffff"><% $svc_acct->$uf %></TD>
+ <TD BGCOLOR="#ffffff"><% $v %></TD>
</TR>
% }
@@ -286,13 +288,6 @@
<TD ALIGN="right">RADIUS groups</TD>
<TD BGCOLOR="#ffffff"><% join('<BR>', $svc_acct->radius_groups) %></TD>
</TR>
-% if ( $svc_acct->seconds =~ /^\d+$/ ) {
-
- <TR>
- <TD ALIGN="right">Prepaid time</TD>
- <TD BGCOLOR="#ffffff"><% duration_exact($svc_acct->seconds) %></TD>
- </TR>
-% }
%
%# Can this be abstracted further? Maybe a library function like
%# widget('HTML', 'view', $svc_acct) ? It would definitely make UI
- Previous message: [freeside-commits] freeside/httemplate/edit/process part_pkg.cgi, 1.19, 1.20 svc_acct.cgi, 1.7, 1.8
- Next message: [freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.68, 1.69 part_svc.cgi, 1.57, 1.58 svc_acct.cgi, 1.46, 1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list