Hi. Was wondering if there was any way to change the currency to show 3 decimal places instead of the usual 2.
Our currency Omani Rials (OMR) has 3 decimal places and most packages only provide for 2.
For example, OMR123,456.780
The decimal places will be relevant for entering financial data in :
- Product Pricing
- Subtotals and Totals
- Tax Values
and for displaying the above in any quote, invoice, payment or financial report
If the current version does not support more than 2 decimals in the currency I hope this is a feature that can be included in the upcoming versions.
TIA.
DevBot
2
[size=10]Last Update: 09.04.2016[/size]
For now you can change this very easy.
In the file: application/helpers/number_helper.php
Line: 27
if ($currency_symbol_placement == 'before') { return $currency_symbol . number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator); } elseif ($currency_symbol_placement == 'afterspace') { return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator) . ' ' . $currency_symbol; } else { return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator) . $currency_symbol; } }
Change the 2’s to 3
before: ($decimal_point) ? 2 :
after: ($decimal_point) ? 3 :
1 Like
Kovah
6