Jump to content

Custom Invoice billing


cristian89

Recommended Posts

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

Link to comment
Share on other sites

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 ?

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