Hello,
My Default currency was USD But as i was paying GST (From India) i need to update the currency in INR Format in GST portal.
I had searched the community and got some luck about doing the exchange and displaying in the Invoice Page (View invoice page) but when ever the exchange rate updates it was also getting update on the view invoice page
but i need it like the currency rate of that day should be stored for paid invoices and which should be change (for unpaid invoices only)
I had used the hook below :
<?php
use Illuminate\Database\Capsule\Manager as Capsule;
function hook_currency_exchange_rates($vars)
{
$exchangerate = Capsule::table('tblcurrencies')
->where('code', 'INR')
->get();
return array("exchangerate" => $exchangerate[0]->rate);
}
add_hook("ClientAreaPage", 1, "hook_currency_exchange_rates");
?>
in viewinvoice.tpl file i had used this
Please can someone help me to store the value and display it on paid invoice
Looking for your Support @brian!