diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twig index 961aa85ce0..c7f9e36031 100644 --- a/resources/views/budgets/index.twig +++ b/resources/views/budgets/index.twig @@ -301,7 +301,11 @@ {% for spentInfo in budget.spent %} {{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }} - ({{ formatAmountBySymbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}) + {% if 0 == activeDaysPassed %} + ({{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}) + {% else %} + ({{ formatAmountBySymbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}) + {% endif %}
{% endfor %} {% for budgetLimit in budget.budgeted %}