title: WHMCS invoicepdf.tpl and viewinvoice.tpl multiple currencies
body: <p>I need two currencies displayed on invoices, in a very basic way: <code>$total</code> should be displayed in default currency, followed by currency calculated using current exchange rate stored in <code>tblcurrencies</code> table, but I'm having trouble getting this to work.</p>
  
  <p>So this line in <code>invoicepdf.tpl</code> and should look something like:</p>
  
  <pre><code>&lt;td align="center"&gt;'.$total.' (€'. number_format($total/$exrate, 2, '.', '').')&lt;/td&gt;
  </code></pre>
  
  <p>where <code>$exrate</code> is current exchange rate pulled from the database and stored in a variable. Probably something similar should be in <code>viewinvoice.tpl</code>.</p>
  
  <p>Of course, there might be a smarter way to do this.</p>