[freeside-commits] freeside/httemplate/view svc_acct.cgi, 1.49.2.4, 1.49.2.5
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Dec 6 08:51:33 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv8692
Modified Files:
Tag: FREESIDE_1_7_BRANCH
svc_acct.cgi
Log Message:
support display of negative time
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_acct.cgi,v
retrieving revision 1.49.2.4
retrieving revision 1.49.2.5
diff -u -d -r1.49.2.4 -r1.49.2.5
--- svc_acct.cgi 22 Sep 2007 19:40:39 -0000 1.49.2.4
+++ svc_acct.cgi 6 Dec 2007 16:51:31 -0000 1.49.2.5
@@ -253,8 +253,9 @@
% foreach my $uf ( keys %ulabel ) {
% my $tf = $uf . "_threshold";
% if ( $svc_acct->$uf ne '' ) {
-% my $v = $uf eq 'seconds' ? duration_exact($svc_acct->$uf)
-% : FS::UI::bytecount::display_bytecount($svc_acct->$uf);
+% my $v = $uf eq 'seconds'
+% ? (($svc_acct->$uf < 0 ? '-' : ''). duration_exact($svc_acct->$uf) )
+% : FS::UI::bytecount::display_bytecount($svc_acct->$uf);
<TR>
<TD ALIGN="right"><% $ulabel{$uf} %> remaining</TD>
<TD BGCOLOR="#ffffff"><% $v %></TD>
More information about the freeside-commits
mailing list