invoice discount amount fix

This commit is contained in:
Arvind Tiwari 2018-05-07 07:50:32 +05:30
commit 0fdb88b8aa
3 changed files with 7 additions and 6 deletions

View file

@ -138,11 +138,11 @@
<span class="pull-right">{{vm.vat|floatformat:2|intcomma}} CHF</span>
</p>
{% endif %}
{% if vm.discount > 0 %}
{% if vm.discount.amount > 0 %}
<p class="text-primary">
{%trans "Discount" as discount_name %}
<span>{{ vm.discount.name|default:discount_name }}: </span>
<span class="pull-right">- {{ discount.amount }} CHF</span>
<span class="pull-right">- {{ vm.discount.amount }} CHF</span>
</p>
{% endif %}
<p>