Work on HTML invoice and internal logic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user