cristian89 Posted August 31, 2013 Share Posted August 31, 2013 Greetings, In accordance with the laws of Romania, for products, we need to display two curency on invoices (default whmcs currency and local currency) In a very basic way: $total should be displayed in default currency EUR, and we need another variable something like: $total * RON. Currency stored in tblcurrencies table To clarify the situation, we do not want to convert EUR in RON or vice-versa, we need to show both in invoicepdf.tpl and view invoice.tpl that the attached example (print screen) /http://img689.imageshack.us/img689/277/a032.png It is possible to help us with a solution? Thanks 0 Quote Link to comment Share on other sites More sharing options...
edwardmill Posted September 2, 2013 Share Posted September 2, 2013 Well i am not sure that you can do this if you want to do try to use the same code which whmcs has used to show might you will get it here. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 2, 2013 Share Posted September 2, 2013 I think this could be done, though my recollection with romanian invoicing is that it only has to be in two currencies if you have VAT, and even then, only the VAT has to be shown in romanian currency as well, not the whole invoice - however, if you live in Romania, you'll know better than me! it would have to be done in two parts - firstly, change the layout of the pdf invoice to include a third column - that's the easy bit as it's just html. the second part is the calculation and that's a little trickier as you would either have to pull the information from the existing variables used for the default invoice, or get the values direct from the database... the default variables would include the € and EUR in them, so they would need to be stripped out. it would probably be easier to access the values from the db - you'd have to get the currency rate from the db anyway. I don't use multiple currencies, so I couldn't really do this project for you - I think I read in another thread you would pay $30 for it, but that wouldn't tempt me to spend time on this.. plus there would be better php coders out there than me anyway! I wish you well in finding a solution - have you thought of contacting whmcs to do the customisation ? 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.