Improvements to taxing
This commit is contained in:
@@ -17,8 +17,8 @@ class Currency {
|
||||
return Num::format($amount,Company::instance()->decimals(),TRUE);
|
||||
}
|
||||
|
||||
public static function round($amount) {
|
||||
return Num::round($amount,Company::instance()->decimals());
|
||||
public static function round($amount,$decimals=0) {
|
||||
return Num::round($amount,Company::instance()->decimals()+$decimals);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user