joel0101 Posted August 24, 2014 Share Posted August 24, 2014 Dear friends,I am trying to display the tax names on my invoices, which are TVQ and TPS. I have a tax breakdown of 9.975% followed by a 5% tax. Normally what one would get is Tax Detail | Tax Rate | Total Tax Products: 9.975% (amount) Products: 5.000% (amount) I want to change the "Products" strings for the tax names (TVQ, TPS) I set up in my backoffice: Tax Detail | Tax Rate | Total Tax TVQ: 9.975% (amount) TPS: 5.000% (amount) So I went to pdf/invoice.tax-tab.tpl, in this section: if isset($product_tax_breakdown)} {foreach $product_tax_breakdown as $rate => $product_tax_infos} <tr style="line-height:6px;background-color:{cycle values='#FFF,#EEE'};"> <td style="width: 40%">{l s='Products' pdf='true'}</td> <td style="width: 20%; text-align: right;">{$rate} %</td> {if isset($product_tax_breakdown)} {foreach $product_tax_breakdown as $rate => $product_tax_infos} <tr style="line-height:6px;background-color:{cycle values='#FFF,#EEE'};"> <td style="width: 40%">{$name}</td> <td style="width: 20%; text-align: right;">{$rate} %</td> because looking in classes/tax/Tax.php, {$name} seems to be a tax variable, just like {$rate} Unfortunately I get nothing on my invoice in the Tax Detail column. Am I doing something wrong? Any help is very appreciated. Many thanks Joel Link to comment Share on other sites More sharing options...
tuk66 Posted August 25, 2014 Share Posted August 25, 2014 See http://www.presta-addons.com/pdf/Invoice - Quebec taxes.pdf. That invoice is created by the M4 PDF Extensions, the "Invoices - compound taxes" template. This is the only solution I know to show compoud taxes properly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now