Jump to content

Add The Tax Rate In The Invoice


Recommended Posts

Hi to all,

 

I just have a question, does anybody know how to add the tax rate for all articles on the invoice ( in the detail list).

I have on the bottom of the invoice the amount of taxes, but not the detail per article.

 

Thank's for your help

  • Like 1
Link to comment
Share on other sites

Hi all,

It's me again, I'm still trying to find a solution :blink:

 

Here is a screenshot of what I'm trying to do:

post-499459-0-64195600-1362923171_thumb.png

 

It's because on some product I have different taxe rate

post-499459-0-55632200-1362923313_thumb.png

 

If someone can help me how to add the taxe rate from all products in the detail list I would be very happy.

 

Best regards

 

PS: sorry for my bad english

Link to comment
Share on other sites

  • 1 month later...

I found the solution. I was unable to find a variable to do it so i made my own calculation.

 

In the file ../pdf/invoice.tpl

 

I made a new column for the tax rate just aside the quantity (the original column had 10% witdth i just added a new one aside of it and gave each column a 5% width) with the following code:

 

 

<td style="text-align: center; width: 5%">{((($order_detail.total_price_tax_incl - $order_detail.total_price_tax_excl) / $order_detail.total_price_tax_excl) * 100)|round:"0"}%</td>

 

It is the [price with tax] minus the [price widout tax] divided by the [price widout tax] times [100] and with the smarty code for rounded number with no decimals.

 

Works like charm.

post-397852-0-19988300-1368180650_thumb.jpg

Edited by xferx (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...