How to change indian currency format in invoice Plane

I want to change the currency format to Indian Currency. I have add Indian Rupee symbol but it not shown in pdf and currency separator ‘,’ in hundred, thounsand, lakh, eg. ₹12,13,50,300.56 it shows ₹121,350,300.56 I try but I can’t. how I do This.

I’m using PHP V. 5.5.33 and Invoice Plane V1.4.6

InvoicePlane does not support hundreds separators so things like 12,13,50,300.56 are not possible.

Sir one more problem is the Indian rupee symbol i.e. ₹. Not shown in genrated pdf. and i want to change the font of it and also quote and invoice formate so how i do this.

Please take a look at the wiki: https://wiki.invoiceplane.com/en/1.0/templates/customize-templates
There is a separate section for templates.

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

Please notice that you won’t get any support if you modify InvoicePlane in that way. :warning:

ok then i delete my all posts

You can keep them up if you want, this was just a notice for other users that may want to use your code.

OK thanks…