Work on HTML invoice and internal logic

This commit is contained in:
Deon George
2012-01-09 12:35:24 +11:00
parent a464d73f9a
commit f0c1f8800e
12 changed files with 431 additions and 115 deletions

View File

@@ -12,8 +12,12 @@
class Currency {
public static function display($amount) {
// @todo $cid and therefore precision should come from a global session value.
return Num::format(Currency::round($amount),2,TRUE);
}
public static function round($amount) {
// @todo This rounding needs to be system configurable.
return Num::format(round($amount,2),2,TRUE);
return Num::round($amount,2);
}
}
?>