Improvements to taxing

This commit is contained in:
Deon George
2013-12-05 16:22:23 +11:00
parent 8ba487a4a6
commit 778eada7f0
13 changed files with 253 additions and 212 deletions

View File

@@ -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);
}
}
?>