Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Tweak reports.
James Cole5db4f8512b9d
diff --git a/resources/views/reports/default/month.twig b/resources/views/reports/default/month.twigindex d5cff5eedb..19fdea02c3 100644--- a/resources/views/reports/default/month.twig+++ b/resources/views/reports/default/month.twig@@ -20,7 +20,16 @@</div><div class="row">- <div class="col-lg-6 col-md-6 col-sm-6 loading" id="accountReport">+ <div class="col-lg-6 col-md-6 col-sm-6 loading">+ <div class="box">+ <div class="box-header with-border">+ <h3 class="box-title">{{ 'accountBalances'|_ }}</h3>+ </div>+ <div class="box-body table-responsive no-padding loading" id="accountReport">+ </div>+ </div>++</div><div class="col-lg-3 col-md-3 col-sm-3"><div class="box">@@ -42,7 +51,15 @@</div></div><div class="row">- <div class="col-lg-6 col-md-6 col-sm-6 loading" id="incomeVsExpenseReport">+ <div class="col-lg-6 col-md-6 col-sm-6">+ <div class="box">+ <div class="box-header with-border">+ <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>+ </div>+ <div class="box-body table-responsive no-padding loading" id="incomeVsExpenseReport">+ </div>+ </div>+</div><div class="col-lg-6 col-md-6 col-sm-6">{% include 'reports/partials/tags.twig' %}diff --git a/resources/views/reports/default/multi-year.twig b/resources/views/reports/default/multi-year.twigindex 3841050be2..e6975889c8 100644--- a/resources/views/reports/default/multi-year.twig+++ b/resources/views/reports/default/multi-year.twig@@ -38,7 +38,7 @@<div class="box-header with-border"><h3 class="box-title">{{ 'income'|_ }}</h3></div>- <div class="box-body table-responsive no-padding loading" id="incomeReport">+ <div class="box-body table-responsive no-padding loading" id="incomeReport"></div></div></div>@@ -53,7 +53,14 @@</div></div><div class="row">- <div class="col-lg-6 col-md-6 col-sm-6 loading" id="incomeVsExpenseReport">+ <div class="col-lg-6 col-md-6 col-sm-6">+ <div class="box">+ <div class="box-header with-border">+ <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>+ </div>+ <div class="box-body table-responsive no-padding loading" id="incomeVsExpenseReport">+ </div>+ </div></div><div class="col-lg-6 col-md-6 col-sm-6">{% include 'reports/partials/tags.twig' %}diff --git a/resources/views/reports/default/year.twig b/resources/views/reports/default/year.twigindex 7d897601bf..1db568296a 100644--- a/resources/views/reports/default/year.twig+++ b/resources/views/reports/default/year.twig@@ -31,17 +31,27 @@<div class="row"><div class="col-lg-6 col-md-6 col-sm-6">- <div class="loading" id="accountReport">+ <div class="box">+ <div class="box-header with-border">+ <h3 class="box-title">{{ 'accountBalances'|_ }}</h3>+ </div>+ <div class="box-body table-responsive no-padding loading" id="accountReport">+ </div>+ </div>+ <div class="box">+ <div class="box-header with-border">+ <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>+ </div>+ <div class="box-body table-responsive no-padding loading" id="incomeVsExpenseReport">+ </div></div>- <div class="loading" id="incomeVsExpenseReport">- </div></div><div class="col-lg-3 col-md-3 col-sm-3"><div class="box"><div class="box-header with-border"><h3 class="box-title">{{ 'income'|_ }}</h3></div>- <div class="box-body table-responsive no-padding loading" id="incomeReport">+ <div class="box-body table-responsive no-padding loading" id="incomeReport"></div></div></div>diff --git a/resources/views/reports/partials/accounts.twig b/resources/views/reports/partials/accounts.twigindex b0d4782a24..f05872ed1f 100644--- a/resources/views/reports/partials/accounts.twig+++ b/resources/views/reports/partials/accounts.twig@@ -1,37 +1,30 @@-<div class="box">- <div class="box-header with-border">- <h3 class="box-title">{{ 'accountBalances'|_ }}</h3>- </div>- <div class="box-body table-responsive no-padding">- <table class="table table-hover sortable">- <thead>- <tr>- <th>{{ 'name'|_ }}</th>- <th>{{ 'balanceStart'|_ }}</th>- <th>{{ 'balanceEnd'|_ }}</th>- <th>{{ 'difference'|_ }}</th>- </tr>- </thead>- <tbody>- {% for account in accountReport.getAccounts %}- <tr>- <td>- <a href="{{ route('accounts.show',account.id) }}" title="{{ account.name }}">{{ account.name }}</a>- </td>- <td data-value="{{ account.startBalance }}">{{ account.startBalance|formatAmount }}</td>- <td data-value="{{ account.endBalance }}">{{ account.endBalance|formatAmount }}</td>- <td data-value="{{ (account.endBalance - account.startBalance) }}">{{ (account.endBalance - account.startBalance)|formatAmount }}</td>- </tr>- {% endfor %}- </tbody>- <tfoot>- <tr>- <td><em>{{ 'sumOfSums'|_ }}</em></td>- <td>{{ accountReport.getStart|formatAmount }}</td>- <td>{{ accountReport.getEnd|formatAmount }}</td>- <td>{{ accountReport.getDifference|formatAmount }}</td>- </tr>- </tfoot>- </table>- </div>-</div>+<table class="table table-hover sortable">+ <thead>+ <tr>+ <th>{{ 'name'|_ }}</th>+ <th>{{ 'balanceStart'|_ }}</th>+ <th>{{ 'balanceEnd'|_ }}</th>+ <th>{{ 'difference'|_ }}</th>+ </tr>+ </thead>+ <tbody>+ {% for account in accountReport.getAccounts %}+ <tr>+ <td>+ <a href="{{ route('accounts.show',account.id) }}" title="{{ account.name }}">{{ account.name }}</a>+ </td>+ <td data-value="{{ account.startBalance }}">{{ account.startBalance|formatAmount }}</td>+ <td data-value="{{ account.endBalance }}">{{ account.endBalance|formatAmount }}</td>+ <td data-value="{{ (account.endBalance - account.startBalance) }}">{{ (account.endBalance - account.startBalance)|formatAmount }}</td>+ </tr>+ {% endfor %}+ </tbody>+ <tfoot>+ <tr>+ <td><em>{{ 'sumOfSums'|_ }}</em></td>+ <td>{{ accountReport.getStart|formatAmount }}</td>+ <td>{{ accountReport.getEnd|formatAmount }}</td>+ <td>{{ accountReport.getDifference|formatAmount }}</td>+ </tr>+ </tfoot>+</table>diff --git a/resources/views/reports/partials/income-vs-expenses.twig b/resources/views/reports/partials/income-vs-expenses.twigindex 5103c1987b..b9c9d0f5f5 100644--- a/resources/views/reports/partials/income-vs-expenses.twig+++ b/resources/views/reports/partials/income-vs-expenses.twig@@ -1,21 +1,14 @@-<div class="box">- <div class="box-header with-border">- <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>- </div>- <div class="box-body table-responsive no-padding">- <table class="table table-hover">- <tr>- <td>{{ 'in'|_ }}</td>- <td>{{ incomes.getTotal|formatAmount }}</td>- </tr>- <tr>- <td>{{ 'out'|_ }}</td>- <td>{{ (expenses.getTotal)|formatAmount }}</td>- </tr>- <tr>- <td>{{ 'difference'|_ }}</td>- <td>{{ (incomes.getTotal + expenses.getTotal)|formatAmount }}</td>- </tr>- </table>- </div>-</div>+<table class="table table-hover">+ <tr>+ <td>{{ 'in'|_ }}</td>+ <td>{{ incomes.getTotal|formatAmount }}</td>+ </tr>+ <tr>+ <td>{{ 'out'|_ }}</td>+ <td>{{ (expenses.getTotal)|formatAmount }}</td>+ </tr>+ <tr>+ <td>{{ 'difference'|_ }}</td>+ <td>{{ (incomes.getTotal + expenses.getTotal)|formatAmount }}</td>+ </tr>+</table>