dxer Posted August 23, 2022 Share Posted August 23, 2022 Hi to all My country is switching currency to Euro so we are obligated to have dual currency displayed on invoices until the end of year 2023. First we need to show our local currency as default and then on 1.1.2023 we need to switch Euro to be default and local currency secondary. I understand that WHMCS does have ability to show multicurrency but on sent invoices this is currently not possible. I need to have dual currency there printed on PDF invoices. There is no need to have all prices in there, only TOTAL at the end must be shown additionaly in EUR. And to repeat, after 1.1.2023 we need to switch default currency. Can someone please help me with this so possibly I could insert code of a sort in invoicepdf.tpl, and wherever is needed to make this happen. Thanks in advanced ! 0 Quote Link to comment Share on other sites More sharing options...
Kakadu Posted August 29, 2022 Share Posted August 29, 2022 On 8/23/2022 at 3:16 PM, dxer said: ncy there printed on PDF invoices. There is no need to have all prices in there, only TOTAL at the end Mala ideja kako bi to mogao izvesti. PS nismo imali puno vremena pa smo složili na brzinu. U invoicepdf.tpl iznad linije "# Invoice Items" oko 136 linija dodaj: $totali = preg_replace('/[^0-9.]+/', '', $total); $totaleu = $totali/7.53540/100; $zaokruzi = round($totaleu, 2); I u tablicu u istom tom dokumentu zamjeni iza 171 linije sve pod $tblhtml .= ' s ovim što sam ti priložio. $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . Lang::trans('invoicescredit') . '</td> <td align="center">' . $credit . '</td> </tr> <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">Ukupno (HRK)</td> <td align="center">' . $total . '</td> </tr> <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">Ukupno (€)</td> <td align="center">' . $zaokruzi . ' €</td> </tr> </table>'; Nadam se da će ti pomoći 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.