Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Possible division by zero?
James Cole4c80d929caf1
diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twigindex 961aa85ce0..c7f9e36031 100644--- a/resources/views/budgets/index.twig+++ b/resources/views/budgets/index.twig@@ -301,7 +301,11 @@<td class="hidden-sm hidden-xs spent" data-id="{{ budget.id }}" style="text-align:right;">{% 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 %}<br/>{% endfor %}{% for budgetLimit in budget.budgeted %}