You can change currency format into Indian Currency Format by just adding some lines in
Invoice\application\helpers\number_helper.php (tested with V1.5.5)
Add new lines indicated at 1 & 3
Replace code with 2 & 4
function format_currency($amount)
{
global $CI;
1 ) >>$currency_code = $CI->mdl_settings->setting(‘currency_code’);
$currency_symbol = $CI->mdl_settings->setting(‘currency_symbol’);
replace >> return $currency_symbol . number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator);
with >>
2 )
if($currency_code == ‘INR’){
list ($inr_amount, $decimal) = explode(’.’, sprintf(’%.2f’, floatval($amount)));
$inr_amount = abs($inr_amount);
for ($i = 3; $i < strlen($inr_amount); $i += 3) {
$inr_amount = substr_replace($inr_amount, ‘,’, -$i, 0);
}
return $currency_symbol . $inr_amount . ‘.’ . $decimal;
} else {
return $currency_symbol . number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator);
}
function format_amount($amount = null)
{
if ($amount) {
$CI =& get_instance();
3 ) >>$currency_code = $CI->mdl_settings->setting(‘currency_code’);
replace >> return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator);
with >>
4 )
if($currency_code == ‘INR’){
list ($inr_amount, $decimal) = explode(’.’, sprintf(’%.2f’, floatval($amount)));
$inr_amount = abs($inr_amount);
for ($i = 3; $i < strlen($inr_amount); $i += 3) {
$inr_amount = substr_replace($inr_amount, ‘,’, -$i, 0);
}
return $inr_amount . ‘.’ . $decimal;
} else {
return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator);
}
Hope this will give you some solution, as this look perfect for me