mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Add notes to audit report.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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} %}
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user