mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-29 01:13:08 +00:00
Fixed a bug in storing date changes for the opening balance of an account
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user