diff options
author | jeff <jeff> | 2007-04-26 04:46:32 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-04-26 04:46:32 +0000 |
commit | 4e35589e637aa3a3615a780d4086085c5ecb1782 (patch) | |
tree | 53598725c2a675a654474b8d427fd4af2c8c16b4 /FS/FS/svc_acct.pm | |
parent | eb78293f2d7bda5e3a59b110b0a813a244e2fce9 (diff) |
more datavolume format
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r-- | FS/FS/svc_acct.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 1e34ff03c..d94673b88 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -2485,8 +2485,12 @@ sub reached_threshold { '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, } ); |