Commit 5a0bc30a authored by Vincent Pelletier's avatar Vincent Pelletier

Do not display VAT information when the rate is 0.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5160 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76b55559
...@@ -189,13 +189,15 @@ ...@@ -189,13 +189,15 @@
(<span tal:replace="python:here.getPriceCurrencyId() or here.getResourceId() or \'\'"/>)</th>\n (<span tal:replace="python:here.getPriceCurrencyId() or here.getResourceId() or \'\'"/>)</th>\n
<td colspan=1 align=right tal:content="python: \'%.02f\' % round(here.getTotalPrice(), 2)" tal:on-error="nothing"></td>\n <td colspan=1 align=right tal:content="python: \'%.02f\' % round(here.getTotalPrice(), 2)" tal:on-error="nothing"></td>\n
</tr>\n </tr>\n
<tr>\n <tal:block tal:condition="python: VAT_infos[\'ratio\'] != 0">\n
<td colspan=2 align=left tal:content="python:here.getDescription()"></td>\n <tr>\n
<th colspan=3 align=right> \n <td colspan=2 align=left tal:content="python:here.getDescription()"></td>\n
<tal:block tal:replace="python: VAT_infos[\'title\']">TVA / VAT</tal:block> <br> \n <th colspan=3 align=right>\n
<tal:block tal:replace="python: (VAT_infos[\'ratio\'] or 0.0) * 100.0"/> % (<span tal:replace="python:here.getPriceCurrencyId() or here.getResourceId() or \'\'"/>)</th>\n <tal:block tal:replace="python: VAT_infos[\'title\']">TVA / VAT</tal:block> <br> \n
<td colspan=1 align=right tal:content="python: \'%.02f\' % round(VAT_infos[\'total\'], 2)"></td>\n <tal:block tal:replace="python: (VAT_infos[\'ratio\'] or 0.0) * 100.0"/> % (<span tal:replace="python:here.getPriceCurrencyId() or here.getResourceId() or \'\'"/>)</th>\n
</tr>\n <td colspan=1 align=right tal:content="python: \'%.02f\' % round(VAT_infos[\'total\'], 2)"></td>\n
</tr>\n
</tal:block>\n
<tr>\n <tr>\n
<td colspan=3>&nbsp;</td>\n <td colspan=3>&nbsp;</td>\n
<td colspan=3><hr noshade></td>\n <td colspan=3><hr noshade></td>\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment