fix open budget calculation (#2821)

This commit is contained in:
Kevin Papst
2021-10-07 11:46:48 +02:00
committed by GitHub
parent b7cf9cd776
commit 3a52daedab

View File

@@ -131,7 +131,7 @@
<tr> <tr>
<th colspan="3" class="text-nowrap text-right"> <th colspan="3" class="text-nowrap text-right">
{% if totalPercentReached < 100 %} {% if totalPercentReached < 100 %}
{{ 'stats.percentUsedLeft'|trans({'%percent%': totalPercentReached|number_format(2), '%left%': (entity.timeBudget - stats.rateBillable)|money(currency)}) }} {{ 'stats.percentUsedLeft'|trans({'%percent%': totalPercentReached|number_format(2), '%left%': (entity.budget - stats.rateBillable)|money(currency)}) }}
{% else %} {% else %}
{{ 'stats.percentUsed'|trans({'%percent%': totalPercentReached|number_format(2)}) }} {{ 'stats.percentUsed'|trans({'%percent%': totalPercentReached|number_format(2)}) }}
{% endif %} {% endif %}