t047554 Posted March 6, 2013 Share Posted March 6, 2013 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 1 Link to comment Share on other sites More sharing options...
t047554 Posted March 10, 2013 Author Share Posted March 10, 2013 Hi all, It's me again, I'm still trying to find a solution Here is a screenshot of what I'm trying to do: It's because on some product I have different taxe rate 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 More sharing options...
xferx Posted May 10, 2013 Share Posted May 10, 2013 Im wondering the very same thing. Any ideas? Link to comment Share on other sites More sharing options...
xferx Posted May 10, 2013 Share Posted May 10, 2013 (edited) 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. Edited May 10, 2013 by xferx (see edit history) 1 Link to comment Share on other sites More sharing options...
janthemanson Posted July 24, 2014 Share Posted July 24, 2014 Thx xferx, this fix works well. I've also added a new column showing only the amount of the tax for the single product. {($order_detail.total_price_tax_incl - $order_detail.total_price_tax_excl)|round:"2"} Link to comment Share on other sites More sharing options...
Recommended Posts