Skip to content

Commit

Permalink
[#1347] Fix for budgets showing twice
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 18, 2015
1 parent ca1842c commit 1d442ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions akvo/templates/project_finance.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ <h4 class="">{% trans "Project financial details" %}:</h4>
<dl class="dl-horizontal">
{% for budget_item in project.budget_items.all %}
{% if 'other' in budget_item.label.label and budget_item.other_extra %}
<dt>{{budget_item.other_extra}}:</dt><dd><span class="currency">{{project.get_currency_display}}</span>{{budget_item.amount|floatformat|intcomma}}</dd>
<dt>{{budget_item.other_extra}}:</dt><dd class="currencyAmount"><span class="currency">{{project.get_currency_display}}</span>{{budget_item.amount|floatformat:2|intcomma}}</dd>
{% else %}
<dt>{{budget_item.label.label}}:</dt><dd><span class="currency">{{project.get_currency_display}}</span>{{budget_item.amount|floatformat|intcomma}}</dd>
{% endif %}
<dt>{{budget_item.label.label}}:</dt><dd class="currencyAmount"><span class="currency">{{project.get_currency_display}}</span>{{budget_item.amount|floatformat:2|intcomma}}</dd>
{% endif %}
{% endfor %}
<dt class="totalFinance">{% trans "Total" %}:</dt><dd class="totalFinance currencyAmount"><span class="currency">{{project.get_currency_display}}</span>{{project.budget|floatformat:2|intcomma}}</dd>
</dl>
Expand Down

0 comments on commit 1d442ad

Please sign in to comment.