mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-29 01:13:08 +00:00
Repository will store edits/ new journals #122
This commit is contained in:
@@ -212,8 +212,12 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
'description' => $data['description'],
|
'description' => $data['description'],
|
||||||
'completed' => 0,
|
'completed' => 0,
|
||||||
'date' => $data['date'],
|
'date' => $data['date'],
|
||||||
|
'interest_date' => $data['interest_date'],
|
||||||
|
'book_date' => $data['book_date'],
|
||||||
|
'process_date' => $data['process_date'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
// TODO catch errors here. Match rules with JournalFormRequest
|
||||||
$journal->save();
|
$journal->save();
|
||||||
|
|
||||||
|
|
||||||
@@ -273,6 +277,9 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
$journal->transaction_currency_id = $data['amount_currency_id_amount'];
|
$journal->transaction_currency_id = $data['amount_currency_id_amount'];
|
||||||
$journal->description = $data['description'];
|
$journal->description = $data['description'];
|
||||||
$journal->date = $data['date'];
|
$journal->date = $data['date'];
|
||||||
|
$journal->interest_date = $data['interest_date'];
|
||||||
|
$journal->book_date = $data['book_date'];
|
||||||
|
$journal->process_date = $data['process_date'];
|
||||||
|
|
||||||
|
|
||||||
// unlink all categories, recreate them:
|
// unlink all categories, recreate them:
|
||||||
|
Reference in New Issue
Block a user