From c9ac36b657d3d944ce75eb00cda2ae71258cb3ea Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Thu, 7 Jun 2012 16:09:12 +0000 Subject: [PATCH] // display ecotax only if needed --- pdf/invoice.tax-tab.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdf/invoice.tax-tab.tpl b/pdf/invoice.tax-tab.tpl index 08015bb5f..10bec1a8e 100755 --- a/pdf/invoice.tax-tab.tpl +++ b/pdf/invoice.tax-tab.tpl @@ -39,7 +39,7 @@ {l s='Tax Rate' pdf='true'} {l s='Total Tax Excl' pdf='true'} {l s='Total Tax' pdf='true'} - + {foreach $product_tax_breakdown as $rate => $product_tax_infos} @@ -64,12 +64,14 @@ {/foreach} {foreach $ecotax_tax_breakdown as $ecotax_tax_infos} + {if $ecotax_tax_infos.ecotax_tax_excl > 0} {l s='Ecotax' pdf='true'} - {$ecotax_tax_infos.rate} % + {$ecotax_tax_infos.rate } % {displayPrice currency=$order->id_currency price=$ecotax_tax_infos.ecotax_tax_excl} {displayPrice currency=$order->id_currency price=($ecotax_tax_infos.ecotax_tax_incl - $ecotax_tax_infos.ecotax_tax_excl)} + {/if} {/foreach} {/if}