Jump to content

Show local currency in PDF paid invoice


Vlad V

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated