Jump to content

Tax name variable for invoice.tax-tab


joel0101

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...