Jump to content

Invoices in pdf doesnt show the secondary tax (but it's still calculated)


Recommended Posts

 

Hi guys, I've a very weird issue here, my whmcs shows correctly (and calculate correctly) the tax 2 (secondary tax) ,when you check the invoice inside the whmcs as show in this image taxrate.png

 

taxrate.thumb.png.9658f74302b013640515e663289f9e98.png

 

 

unfortunatelly the pdf invoice doesnt show this tax..

 

 

tax22.png.b274b8fcaf37fff2abdc3844f9d049d7.png

 

I check the invoice.tpl in my template folder, seems than taxname2 is null, I display all the variables with php

 

invoicetpl.png.5139c2c6acbf8b92d4d79477216e2464.png

 

and you can see..the taxname2 is empty and taxrate2 appears as 0 when must be -3% and actually this is correctly calculate in the invoice

 

invoicepdf.png.998483dfbe60f6fa59934a7291247f62.png

 

checking the DB seems than the values are correctly set

 

invoicesql.png.ff3b4cdb4e02e049ce69d5a932fa9aeb.png

 

 

So in conclusion, the secondary tax is correctly displayed and calculated, but it's not been displayed in the invoice, where seems than my template is not correctly querying the db and the taxrate2 taken is 0.00 (and not -3.00)

 

before you ask, the tax 2 is a discount than my country is applying and I need show this in the invoice, I can't calculate this directly (this must be displayed in the invoice) 

 

hope you can help me with this issue, thank you so much guys, hope you can understand the issue and help me

 

Have a wonderful day

 

 

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