mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge pull request #147 from roberthorlings/develop
Fixed a bug in storing date changes for the opening balance
This commit is contained in:
commit
ae4b198d3d
@ -554,7 +554,8 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
protected function updateInitialBalance(Account $account, TransactionJournal $journal, array $data)
|
||||
{
|
||||
$journal->date = $data['openingBalanceDate'];
|
||||
|
||||
$journal->save();
|
||||
|
||||
/** @var Transaction $transaction */
|
||||
foreach ($journal->transactions()->get() as $transaction) {
|
||||
if ($account->id == $transaction->account_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user