Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add notes to audit report.
James Colee1785898bafd
diff --git a/app/Generator/Report/Audit/MonthReportGenerator.php b/app/Generator/Report/Audit/MonthReportGenerator.phpindex 2ae858c600..87d67d20c4 100644--- a/app/Generator/Report/Audit/MonthReportGenerator.php+++ b/app/Generator/Report/Audit/MonthReportGenerator.php@@ -83,6 +83,9 @@ class MonthReportGenerator implements ReportGeneratorInterface'create_date','update_date',+ // more+ 'notes',+// date fields.'interest_date','book_date',@@ -126,7 +129,7 @@ class MonthReportGenerator implements ReportGeneratorInterface/** @var GroupCollectorInterface $collector */$collector = app(GroupCollectorInterface::class);$collector->setAccounts(new Collection([$account]))->setRange($this->start, $this->end)->withAccountInformation()- ->withBudgetInformation()->withCategoryInformation()->withBillInformation()+ ->withBudgetInformation()->withCategoryInformation()->withBillInformation()->withNotes();$journals = $collector->getExtractedJournals();$journals = array_reverse($journals, true);diff --git a/resources/views/reports/audit/report.twig b/resources/views/reports/audit/report.twigindex c3ca5d319f..024f3e6638 100644--- a/resources/views/reports/audit/report.twig+++ b/resources/views/reports/audit/report.twig@@ -58,7 +58,7 @@account_name: account.name|escape,url: url,end: auditData[account.id].dayBefore,- balance: formatAmountByAccount(account, auditData[account.id].dayBeforeBalance)+ balance: formatAmountByAccount(account, auditData[account.id].dayBeforeBalance.balance)})|raw }}</p>{% include 'reports.partials.journals-audit' with {'journals': auditData[account.id].journals,'account':account} %}diff --git a/resources/views/reports/partials/journals-audit.twig b/resources/views/reports/partials/journals-audit.twigindex 653adcfd7d..2e101645c4 100644--- a/resources/views/reports/partials/journals-audit.twig+++ b/resources/views/reports/partials/journals-audit.twig@@ -22,6 +22,8 @@<th class="hide-create_date">{{ trans('list.create_date') }}</th><th class="hide-update_date">{{ trans('list.update_date') }}</th>+ <th class="hide-notes">{{ trans('list.notes') }}</th>+{# even more optional fields #}<th class="hide-interest_date">{{ trans('list.interest_date') }}</th><th class="hide-book_date">{{ trans('list.book_date') }}</th>@@ -144,6 +146,9 @@<td class="hide-update_date">{{ journal.updated_at.isoFormat(dateTimeFormat) }}</td>+ <td class="hide-notes">+ {{ journal.notes|default('')|markdown }}+ </td><!-- more new dates --><td class="hide-interest_date">