[freeside-commits] freeside/FS/FS svc_acct.pm,1.229,1.230
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Apr 25 21:46:34 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv14627/FS/FS
Modified Files:
svc_acct.pm
Log Message:
more datavolume format
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.229
retrieving revision 1.230
diff -u -d -r1.229 -r1.230
--- svc_acct.pm 19 Apr 2007 23:30:38 -0000 1.229
+++ svc_acct.pm 26 Apr 2007 04:46:31 -0000 1.230
@@ -2485,8 +2485,12 @@
'last' => $cust_main->getfield('last'),
'pkg' => $cust_pkg->part_pkg->pkg,
'column' => $opt{'column'},
- 'amount' => $svc_acct->getfield($opt{'column'}),
- 'threshold' => $threshold,
+ 'amount' => $opt{'column'} =~/bytes/
+ ? FS::UI::bytecount::display_bytecount($svc_acct->getfield($opt{'column'}))
+ : $svc_acct->getfield($opt{'column'}),
+ 'threshold' => $opt{'column'} =~/bytes/
+ ? FS::UI::bytecount::display_bytecount($threshold)
+ : $threshold,
} );
More information about the freeside-commits
mailing list