Include notes in export.

This commit is contained in:
James Cole
2020-06-09 17:40:09 +02:00
parent 1bac3258da
commit 5b829b514f
7 changed files with 115 additions and 3 deletions

View File

@@ -656,11 +656,11 @@ class ExportDataGenerator
// TODO better place for keys?
$header = ['user_id', 'group_id', 'journal_id', 'created_at', 'updated_at', 'group_title', 'type', 'amount', 'foreign_amount', 'currency_code',
'foreign_currency_code', 'description', 'date', 'source_name', 'source_iban', 'source_type', 'destination_name', 'destination_iban',
'destination_type', 'reconciled', 'category', 'budget', 'bill', 'tags',];
'destination_type', 'reconciled', 'category', 'budget', 'bill', 'tags', 'notes'];
$collector = app(GroupCollectorInterface::class);
$collector->setUser($this->user);
$collector->setRange($this->start, $this->end)->withAccountInformation()->withCategoryInformation()->withBillInformation()
->withBudgetInformation()->withTagInformation();
->withBudgetInformation()->withTagInformation()->withNotes();
$journals = $collector->getExtractedJournals();
$records = [];
@@ -691,6 +691,7 @@ class ExportDataGenerator
$journal['budget_name'],
$journal['bill_name'],
$this->mergeTags($journal['tags']),
$journal['notes'],
];
}