Added a Unit overview action. It's a bit quick and dirty, but it's intended for admins only.

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@957 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2010-03-11 23:40:47 +00:00
parent b6e2b781ef
commit 7770f13bf3
4 changed files with 95 additions and 5 deletions

View File

@@ -47,6 +47,13 @@ class FormatHelper extends AppHelper {
return $currency;
}
function percent($amount, $precision = 2) {
if (!isset($amount))
return '-';
return self::$number->toPercentage($amount*100, $precision);
}
function date($date, $age = false, $class = null, $time = false) {
if (!$date) return null;