+
- {% for year, entries in months %}
-
-
- {% endfor %}
+
+
-
+
+
-
- {% for year, entries in months %}
-
-
- {% endfor %}
+
{{ 'quick_link_default_report'|_ }}
+
+
+ {{ 'reports_can_bookmark'|_ }}
+
+
+
{% endblock %}
{% block scripts %}
-
+
+
+
{% endblock %}
diff --git a/resources/twig/partials/reports/accounts.twig b/resources/twig/reports/partials/accounts.twig
similarity index 83%
rename from resources/twig/partials/reports/accounts.twig
rename to resources/twig/reports/partials/accounts.twig
index 89c051d859..b0d4782a24 100644
--- a/resources/twig/partials/reports/accounts.twig
+++ b/resources/twig/reports/partials/accounts.twig
@@ -13,7 +13,7 @@
- {% for account in accounts.getAccounts %}
+ {% for account in accountReport.getAccounts %}
|
{{ account.name }}
@@ -27,9 +27,9 @@
|
| {{ 'sumOfSums'|_ }} |
- {{ accounts.getStart|formatAmount }} |
- {{ accounts.getEnd|formatAmount }} |
- {{ accounts.getDifference|formatAmount }} |
+ {{ accountReport.getStart|formatAmount }} |
+ {{ accountReport.getEnd|formatAmount }} |
+ {{ accountReport.getDifference|formatAmount }} |
diff --git a/resources/twig/partials/reports/balance.twig b/resources/twig/reports/partials/balance.twig
similarity index 80%
rename from resources/twig/partials/reports/balance.twig
rename to resources/twig/reports/partials/balance.twig
index e431e9a992..74cf4804a9 100644
--- a/resources/twig/partials/reports/balance.twig
+++ b/resources/twig/reports/partials/balance.twig
@@ -14,7 +14,6 @@
{{ 'leftInBudget'|_ }}
|
-
{{ 'sum'|_ }} |
@@ -35,7 +34,7 @@
{% for balanceEntry in balanceLine.getBalanceEntries %}
{% if balanceEntry.getSpent != 0 %}
- {{ (balanceEntry.getSpent*-1)|formatAmountPlain }}
+ {{ (balanceEntry.getSpent)|formatAmountPlain }}
{% endif %}
{% if balanceEntry.getLeft != 0 %}
{{ (balanceEntry.getLeft)|formatAmountPlain }}
@@ -43,14 +42,7 @@
|
{% endfor %}
- {% if balanceLine.leftOfRepetition != 0 %}
- {{ balanceLine.leftOfRepetition|formatAmount }}
- {% endif %}
- |
-
- {% if balanceLine.sumOfLeft != 0 %}
- {{ balanceLine.sumOfLeft|formatAmount }}
- {% endif %}
+ {{ balanceLine.leftOfRepetition|formatAmount }}
|
{% endfor %}
diff --git a/resources/twig/partials/reports/bills.twig b/resources/twig/reports/partials/bills.twig
similarity index 96%
rename from resources/twig/partials/reports/bills.twig
rename to resources/twig/reports/partials/bills.twig
index 84288f6501..266c9b6f5b 100644
--- a/resources/twig/partials/reports/bills.twig
+++ b/resources/twig/reports/partials/bills.twig
@@ -39,7 +39,7 @@
{% endif %}
{% if line.isActive %}
- {{ (line.getMax - line.getAmount)|formatAmount }}
+ {{ (line.getMax + line.getAmount)|formatAmount }}
{% endif %}
|
diff --git a/resources/twig/partials/reports/budgets.twig b/resources/twig/reports/partials/budgets.twig
similarity index 80%
rename from resources/twig/partials/reports/budgets.twig
rename to resources/twig/reports/partials/budgets.twig
index 3972b4dffe..aa8c9986e3 100644
--- a/resources/twig/partials/reports/budgets.twig
+++ b/resources/twig/reports/partials/budgets.twig
@@ -41,15 +41,17 @@
{% if budgetLine.getSpent != 0 %}
{{ budgetLine.getSpent|formatAmount }}
{% endif %}
-
-
- {% if budgetLine.getLeft != 0 %}
- {{ budgetLine.getLeft|formatAmount }}
+
+ {% if budgetLine.getSpent == 0 %}
+ {{ budgetLine.getSpent|formatAmount }}
{% endif %}
|
+
+ {{ budgetLine.getLeft|formatAmount }}
+ |
{% if budgetLine.getOverspent != 0 %}
- {{ budgetLine.getOverspent|formatAmountPlain }}
+ {{ budgetLine.getOverspent|formatAmount }}
{% endif %}
|
@@ -59,7 +61,14 @@
| {{ 'sum'|_ }} |
{{ budgets.getBudgeted|formatAmount }} |
- {{ budgets.getSpent|formatAmount }} |
+
+ {% if budgets.getSpent != 0 %}
+ {{ budgets.getSpent|formatAmountPlain }}
+ {% endif %}
+ {% if budgets.getSpent == 0 %}
+ {{ budgets.getSpent|formatAmount }}
+ {% endif %}
+ |
{{ budgets.getLeft|formatAmount }} |
{{ budgets.getOverspent|formatAmountPlain }} |
diff --git a/resources/twig/partials/reports/categories.twig b/resources/twig/reports/partials/categories.twig
similarity index 81%
rename from resources/twig/partials/reports/categories.twig
rename to resources/twig/reports/partials/categories.twig
index 88aee1a0b9..ee5000825e 100644
--- a/resources/twig/partials/reports/categories.twig
+++ b/resources/twig/reports/partials/categories.twig
@@ -16,14 +16,14 @@
{{ cat.name }}
|
- {{ (cat.spent * -1)|formatAmountPlain }} |
+ {{ cat.spent|formatAmount }} |
{% endfor %}
| {{ 'sum'|_ }} |
- {{ (categories.getTotal * -1)|formatAmountPlain }} |
+ {{ categories.getTotal|formatAmount }} |
diff --git a/resources/twig/partials/reports/expenses.twig b/resources/twig/reports/partials/expenses.twig
similarity index 87%
rename from resources/twig/partials/reports/expenses.twig
rename to resources/twig/reports/partials/expenses.twig
index eb3f1d035c..25f632fc8f 100644
--- a/resources/twig/partials/reports/expenses.twig
+++ b/resources/twig/reports/partials/expenses.twig
@@ -18,7 +18,7 @@
{{ expense.count }} {{ 'transactions'|_|lower }}
{% endif %}
-
{{ (expense.amount)|formatAmountPlain }} |
+
{{ (expense.amount)|formatAmount }} |
{% endfor %}
@@ -32,7 +32,7 @@
{% endif %}
| {{ 'sum'|_ }} |
- {{ (expenses.getTotal)|formatAmountPlain }} |
+ {{ (expenses.getTotal)|formatAmount }} |
diff --git a/resources/twig/partials/reports/income-vs-expenses.twig b/resources/twig/reports/partials/income-vs-expenses.twig
similarity index 74%
rename from resources/twig/partials/reports/income-vs-expenses.twig
rename to resources/twig/reports/partials/income-vs-expenses.twig
index c3d6d52b84..5103c1987b 100644
--- a/resources/twig/partials/reports/income-vs-expenses.twig
+++ b/resources/twig/reports/partials/income-vs-expenses.twig
@@ -10,11 +10,11 @@
| {{ 'out'|_ }} |
- {{ (expenses.getTotal)|formatAmountPlain }} |
+ {{ (expenses.getTotal)|formatAmount }} |
| {{ 'difference'|_ }} |
- {{ (incomes.getTotal + (expenses.getTotal * -1))|formatAmount }} |
+ {{ (incomes.getTotal + expenses.getTotal)|formatAmount }} |
diff --git a/resources/twig/partials/reports/income.twig b/resources/twig/reports/partials/income.twig
similarity index 100%
rename from resources/twig/partials/reports/income.twig
rename to resources/twig/reports/partials/income.twig
diff --git a/resources/twig/transactions/show.twig b/resources/twig/transactions/show.twig
index c87273dd1b..b6cd21498b 100644
--- a/resources/twig/transactions/show.twig
+++ b/resources/twig/transactions/show.twig
@@ -43,6 +43,12 @@
{% endfor %}
+ {% if journal.bill %}
+
+ {% endif %}
{% if journal.tags|length > 0 %}