Vlad V Posted February 16, 2019 Share Posted February 16, 2019 Hello! I want to show only in .pdf paid invoices the automatically generated text like a "note" with subtotal, vat, and total sum in local currency. But I can't find information how I can get current currency rate for $subtotal $tax and $total For example: If invoice in EUR (main) or USD => show text note with local currency: Text note: Subtotal X RON; VAT X RON; Total X RON ($subtotal, $tax, $total - but in RON at the moment of paid invoice generation) Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 17, 2019 Share Posted February 17, 2019 17 hours ago, Vlad V said: But I can't find information how I can get current currency rate for $subtotal $tax and $total you would need to query the database to get the exchange rate... perhaps the thread below will be of some use to you, though if this is purely for the invoice pdf template, then you won't need to use hooks as you'll be querying the database directly in your invoicepdf.tpl file. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.