Skip to content

Firefly III: a personal finances manager

Fix balance view [skip ci]

James Colef4786c3ec848
diff --git a/resources/views/reports/partials/balance.twig b/resources/views/reports/partials/balance.twig
index c2c6e1a323..77c795d351 100644
--- a/resources/views/reports/partials/balance.twig
+++ b/resources/views/reports/partials/balance.twig
@@ -29,8 +29,8 @@
{% endif %}
</td>
<td style="text-align: right;">
- {% if(balanceLine.getBudget.amount) %}
- {{ balanceLine.getBudget.amount|formatAmount }}
+ {% if(balanceLine.getBudgetLimit.amount) %}
+ {{ balanceLine.getBudgetLimit.amount|formatAmount }}
{% else %}
{{ '0'|formatAmount }}
{% endif %}
@@ -46,7 +46,6 @@
<i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="balance-amount"
data-account-id="{{ balanceEntry.getAccount.id }}"
data-budget-id="{{ balanceLine.getBudget.id }}" data-role="{{ balanceLine.getRole }}"></i>
-
{% endif %}
{% if balanceEntry.getLeft != 0 %}
<span class="text-success" style="text-align: right;">{{ (balanceEntry.getLeft)|formatAmountPlain }}</span>